add tests for files and refactor

This commit is contained in:
j3d1 2020-01-19 01:07:08 +01:00
parent b0cb0db558
commit 010282a7bb
6 changed files with 112 additions and 49 deletions

View file

@ -43,7 +43,6 @@ $router->group(['prefix' => '1'], function () use ($router) {
$router->get('file/{id}', ['uses' => 'FileController@showOneFile']);
$router->post('file', ['uses' => 'FileController@create']);
$router->delete('file/{id}', ['uses' => 'FileController@delete']);
$router->put('file/{id}', ['uses' => 'FileController@update']);
// items
$router->get('{event}/items', ['uses' => 'ItemController@showByEvent']);