mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-24 15:49:29 +08:00
17 lines
508 B
PHP
17 lines
508 B
PHP
<?php
|
|
|
|
/**
|
|
* Routes for the BookStack API.
|
|
* 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('books', 'BooksApiController@list');
|
|
Route::post('books', 'BooksApiController@create');
|
|
Route::get('books/{id}', 'BooksApiController@read');
|
|
Route::put('books/{id}', 'BooksApiController@update');
|
|
Route::delete('books/{id}', 'BooksApiController@delete');
|