Blame view

app/library/App/Collections/ExportCollection.php 728 Bytes
15479603   Alex Savenko   initialize
1
2
3
4
5
6
7
8
9
10
11
12
  <?php
  
  namespace App\Collections;
  
  use App\Controllers\ExportController;
  use PhalconRest\Api\ApiCollection;
  use PhalconRest\Api\ApiEndpoint;
  
  class ExportCollection extends ApiCollection
  {
      protected function initialize()
      {
668b3e5b   Alex Savenko   docs
13
14
15
16
17
18
  //        $this
  //            ->name('Export')
  //            ->handler(ExportController::class)
  //
  //            ->endpoint(ApiEndpoint::get('/documentation.json', 'documentation'))
  //            ->endpoint(ApiEndpoint::get('/postman.json', 'postman'));
15479603   Alex Savenko   initialize
19
  
668b3e5b   Alex Savenko   docs
20
21
22
23
          $this->name('Export');
          $this->handler(ExportController::class);
          $this->endpoint(ApiEndpoint::get('/documentation.json', 'documentation'));
          $this->endpoint(ApiEndpoint::get('/postman.json', 'postman'));
15479603   Alex Savenko   initialize
24
25
      }
  }