1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-31 15:24:31 +03:00

Added basic attachment editing functionality

This commit is contained in:
Dan Brown
2016-10-11 20:39:11 +01:00
parent 89509b487a
commit 867fc8be64
7 changed files with 307 additions and 79 deletions

View File

@ -90,7 +90,9 @@ Route::group(['middleware' => 'auth'], function () {
// File routes
Route::get('/files/{id}', 'FileController@get');
Route::post('/files/upload', 'FileController@upload');
Route::post('/files/upload/{id}', 'FileController@uploadUpdate');
Route::post('/files/link', 'FileController@attachLink');
Route::put('/files/{id}', 'FileController@update');
Route::get('/files/get/page/{pageId}', 'FileController@listForPage');
Route::put('/files/sort/page/{pageId}', 'FileController@sortForPage');
Route::delete('/files/{id}', 'FileController@delete');