| 1 | <?php |
||
| 8 | class MetadataRouteProvider extends ServiceProvider |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Bootstrap the application services. |
||
| 12 | * |
||
| 13 | * @return void |
||
| 14 | */ |
||
| 15 | public function boot() |
||
| 19 | |||
| 20 | private static function setupRoute() |
||
| 21 | { |
||
| 22 | Route::any( |
||
| 23 | 'odata.svc/{section}', |
||
| 24 | [ 'uses' => 'AlgoWeb\PODataLaravel\Controllers\ODataController@index', 'middleware' => 'auth.basic'] |
||
| 25 | ) |
||
| 26 | ->where(['section' => '.*']); |
||
| 27 | Route::any( |
||
| 28 | 'odata.svc', |
||
| 29 | [ 'uses' => 'AlgoWeb\PODataLaravel\Controllers\ODataController@index', 'middleware' => 'auth.basic'] |
||
| 30 | ); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Register the application services. |
||
| 35 | * |
||
| 36 | * @return void |
||
| 37 | */ |
||
| 38 | public function register() |
||
| 42 | } |
||
| 43 |