1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Build out core attachments API controller

Related to #2942
This commit is contained in:
Dan Brown
2021-10-18 17:46:55 +01:00
parent 1a8a6c609a
commit 32f6ea946f
5 changed files with 196 additions and 17 deletions

View File

@ -7,6 +7,12 @@
*/
Route::get('docs.json', 'ApiDocsController@json');
Route::get('attachments', 'AttachmentApiController@list');
Route::post('attachments', 'AttachmentApiController@create');
Route::get('attachments/{id}', 'AttachmentApiController@read');
Route::put('attachments/{id}', 'AttachmentApiController@update');
Route::delete('attachments/{id}', 'AttachmentApiController@delete');
Route::get('books', 'BookApiController@list');
Route::post('books', 'BookApiController@create');
Route::get('books/{id}', 'BookApiController@read');