| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | public function forAuthentication() |
||
| 38 | { |
||
| 39 | $this->router->post('login', 'AuthController@login') |
||
| 40 | ->name('login'); |
||
| 41 | |||
| 42 | $this->router->post('login/refresh', 'AuthController@refresh') |
||
| 43 | ->name('refresh'); |
||
| 44 | |||
| 45 | $this->router->group(['middleware' => ['auth:api']], function ($router) { |
||
| 46 | $router->post('logout', 'AuthController@logout') |
||
| 47 | ->name('logout'); |
||
| 48 | }); |
||
| 65 |