]> BookStack Code Mirror - bookstack/blob - app/Http/routes.php
Initial commit
[bookstack] / app / Http / routes.php
1 <?php
2
3 /*
4 |--------------------------------------------------------------------------
5 | Application Routes
6 |--------------------------------------------------------------------------
7 |
8 | Here is where you can register all of the routes for an application.
9 | It's a breeze. Simply tell Laravel the URIs it should respond to
10 | and give it the controller to call when that URI is requested.
11 |
12 */
13
14
15 Route::group(['prefix' => 'books'], function() {
16
17     Route::get('/', 'BookController@index');
18     Route::get('/create', 'BookController@create');
19     Route::post('/', 'BookController@store');
20     Route::get('/{slug}/edit', 'BookController@edit');
21     Route::put('/{slug}', 'BookController@update');
22     Route::delete('/{id}/destroy', 'BookController@destroy');
23     Route::get('/{slug}', 'BookController@show');
24 });
25
26 Route::get('/', function () {
27     return view('base');
28 });