Test Failed
Pull Request — master (#96)
by Maximo
04:33
created

api/routes/api.php (1 issue)

Labels
Severity
1
<?php
2
3
use Baka\Http\Router\Collection;
0 ignored issues
show
The type Baka\Http\Router\Collection was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
4
5
/*
6
|--------------------------------------------------------------------------
7
| API Routes
8
|--------------------------------------------------------------------------
9
|
10
| Here is where you can register all of the routes for api.
11
 */
12
13 72
$router = new Collection($application);
14 72
$router->setPrefix('/v1');
15
16 72
$router->get('/', [
17 72
    'Gewaer\Api\Controllers\IndexController',
18
    'index',
19
    'options' => [
20
        'jwt' => false,
21
    ]
22
]);
23
24 72
$router->get('/status', [
25 72
    'Gewaer\Api\Controllers\IndexController',
26
    'status',
27
    'options' => [
28
        'jwt' => false,
29
    ]
30
]);
31
32
$router->mount();
33