bookinventory/routes/web.php

25 lines
871 B
PHP
Raw Permalink Normal View History

2020-12-21 07:09:34 +00:00
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', 'MainController@index');
2020-12-27 00:34:07 +00:00
Route::get('/add', 'MainController@add')->name('add');
2020-12-26 10:46:23 +00:00
Route::post('/save', 'MainController@save')->name('save');
Route::get('/search', 'MainController@search')->name('search');
2020-12-21 07:09:34 +00:00
Route::get('/lookup/{isbn}', 'LookupController@lookup');
Route::get('/authors/search', 'AuthorController@search');
Route::resource('authors', 'AuthorController');
Route::resource('locations', 'LocationController');
Route::resource('books', 'BookController');