* changed routes while debuging endpoints
* added corsmiddlewarefactory * changing teams is now possible
This commit is contained in:
@@ -36,6 +36,11 @@ return function (Application $app, MiddlewareFactory $factory, ContainerInterfac
|
||||
$app->get('/', App\Handler\HomePageHandler::class, 'home');
|
||||
$app->get('/api/ping', App\Handler\PingHandler::class, 'api.ping');
|
||||
|
||||
$app->route('/api/team[/{id:\d+}]', App\Handler\TeamHandler::class)->setName('api.team');
|
||||
$app->get('/api/team', App\Handler\TeamHandler::class,'api.team.list');
|
||||
$app->get('/api/team/{id:\d+}', App\Handler\TeamHandler::class,'api.team.get');
|
||||
$app->post('/api/team', App\Handler\TeamHandler::class,'api.team.add');
|
||||
$app->put('/api/team[/{id:\d+}]', App\Handler\TeamHandler::class,'api.team.change');
|
||||
$app->delete('/api/team/{id:\d+}', App\Handler\TeamHandler::class,'api.team.delete');
|
||||
|
||||
$app->route('/api/slide[/{id:\d+}]', App\Handler\SlideHandler::class)->setName('api.slide');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user