added items
This commit is contained in:
parent
58618259a5
commit
194a0a81e0
3 changed files with 74 additions and 0 deletions
|
@ -31,4 +31,13 @@ $router->group(['prefix' => 'api'], function () use ($router) {
|
|||
$router->post('containers', ['uses' => 'ContainerController@create']);
|
||||
$router->delete('containers/{id}', ['uses' => 'ContainerController@delete']);
|
||||
$router->put('containers/{id}', ['uses' => 'ContainerController@update']);
|
||||
});
|
||||
|
||||
$router->group(['prefix' => 'api'], function () use ($router) {
|
||||
// items
|
||||
$router->get('items', ['uses' => 'ItemController@showAllItems']);
|
||||
$router->get('items/{id}', ['uses' => 'ItemController@showOneItem']);
|
||||
$router->post('items', ['uses' => 'ItemController@create']);
|
||||
$router->delete('items/{id}', ['uses' => 'ItemController@delete']);
|
||||
$router->put('items/{id}', ['uses' => 'ItemController@update']);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue