1
0
mirror of https://github.com/robonen/education-project.git synced 2026-03-20 02:44:31 +00:00

Новости(CRUD + PhotoStorage)

This commit is contained in:
ashen-1-dev
2020-12-15 16:35:50 +07:00
parent 84cded965e
commit c9b4427d99
7 changed files with 249 additions and 0 deletions

View File

@@ -42,3 +42,13 @@ Route::group(['prefix' => 'banktask'], function () {
Route::get('/file/{file}/download', 'BankTaskFileController@download');
Route::delete('/file/{file}/delete', 'BankTaskFileController@delete');
Route::put('/file/{file}/update', 'BankTaskFileController@update');
Route::group(['prefix' => 'news'], function () {
Route::post('', 'News\NewsController@store');
Route::get('', 'News\NewsController@index');
Route::get('/{news}', 'News\NewsController@show');
Route::put('/{news}', 'News\NewsController@edit');
Route::delete('/{news}', 'News\NewsController@delete');
Route::post('/{news}/addphoto', 'News\NewsFileController@store');
Route::delete('/{file}', 'News\NewsFileController@delete');
});