]> BookStack Code Mirror - bookstack/blobdiff - routes/api.php
Modernize third party services' logos
[bookstack] / routes / api.php
index 83a411219833ae3daa9048cb21e88ba1d539f29e..49521bb89190ceddf4205ba495406f5815551b4d 100644 (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');