| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | private function setupRoute() |
||
| 22 | { |
||
| 23 | $authMiddleware = $this->getAuthMiddleware(); |
||
| 24 | $controllerMethod = 'AlgoWeb\PODataLaravel\Controllers\ODataController@index'; |
||
| 25 | |||
| 26 | Route::get('odata.svc/$metadata', ['uses' => $controllerMethod, 'middleware' => null]); |
||
| 27 | |||
| 28 | Route::any('odata.svc/{section}', ['uses' => $controllerMethod, 'middleware' => $authMiddleware]) |
||
| 29 | ->where(['section' => '.*']); |
||
| 30 | Route::any('odata.svc', ['uses' => $controllerMethod, 'middleware' => null]); |
||
| 31 | } |
||
| 32 | |||
| 67 |