bookinventory/routes/web.php

25 lines
858 B
PHP
Raw 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');
Route::get('/add', 'MainController@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');