created routes
This commit is contained in:
parent
ab079df35d
commit
0eefc87fbf
1 changed files with 12 additions and 0 deletions
|
@ -14,3 +14,15 @@
|
|||
$router->get('/', function () use ($router) {
|
||||
return $router->app->version();
|
||||
});
|
||||
|
||||
$router->group(['prefix' => 'api'], function () use ($router) {
|
||||
$router->get('events', ['uses' => 'EventController@showAllAuthors']);
|
||||
|
||||
$router->get('events/{id}', ['uses' => 'EventController@showOneAuthor']);
|
||||
|
||||
$router->post('events', ['uses' => 'EventController@create']);
|
||||
|
||||
$router->delete('events/{id}', ['uses' => 'EventController@delete']);
|
||||
|
||||
$router->put('events/{id}', ['uses' => 'EventController@update']);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue