2019-12-28 15:58:07 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Routes for the BookStack API.
|
|
|
|
* Routes have a uri prefix of /api/.
|
2020-01-12 15:45:54 +01:00
|
|
|
* Controllers are all within app/Http/Controllers/Api
|
2019-12-28 15:58:07 +01:00
|
|
|
*/
|
|
|
|
|
2020-01-12 17:25:14 +01:00
|
|
|
Route::get('docs', 'ApiDocsController@display');
|
|
|
|
Route::get('docs.json', 'ApiDocsController@json');
|
|
|
|
|
2020-01-18 15:03:11 +01:00
|
|
|
Route::get('books', 'BooksApiController@list');
|
2020-01-12 15:45:54 +01:00
|
|
|
Route::post('books', 'BooksApiController@create');
|
|
|
|
Route::get('books/{id}', 'BooksApiController@read');
|
|
|
|
Route::put('books/{id}', 'BooksApiController@update');
|
|
|
|
Route::delete('books/{id}', 'BooksApiController@delete');
|