]> BookStack Code Mirror - bookstack/blobdiff - routes/api.php
Minor capitalisation fix for Estonian
[bookstack] / routes / api.php
index a6ed0c8f110702c007db4feceb8075a5f1ab6971..49521bb89190ceddf4205ba495406f5815551b4d 100644 (file)
@@ -5,9 +5,14 @@
  * Routes have a uri prefix of /api/.
  * Controllers are all within app/Http/Controllers/Api.
  */
-Route::get('docs', 'ApiDocsController@display');
 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');