My beer compendium
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
2.3 KiB

3 years ago
3 years ago
3 years ago
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. use App\Models\Search;
  4. /*
  5. |--------------------------------------------------------------------------
  6. | Web Routes
  7. |--------------------------------------------------------------------------
  8. |
  9. | Here is where you can register web routes for your application. These
  10. | routes are loaded by the RouteServiceProvider within a group which
  11. | contains the "web" middleware group. Now create something great!
  12. |
  13. */
  14. Route::get('/', function () {
  15. return view('welcome');
  16. });
  17. Auth::routes(['register' => false]);
  18. Route::any('/register', function() {
  19. return view('welcome');
  20. });
  21. Route::resource('breweries', 'App\Http\Controllers\BrewerieController');
  22. Route::resource('beers', 'App\Http\Controllers\SummarieController');
  23. Route::resource('grains', 'App\Http\Controllers\GrainController');
  24. Route::resource('hops', 'App\Http\Controllers\HopController');
  25. Route::resource('yeasts', 'App\Http\Controllers\YeastController');
  26. Route::resource('adjuncts', 'App\Http\Controllers\AdjunctController');
  27. Route::resource('grainbills', 'App\Http\Controllers\GrainbillController');
  28. Route::resource('mashes', 'App\Http\Controllers\MasheController');
  29. Route::resource('hopadditions', 'App\Http\Controllers\HopAdditionController');
  30. Route::resource('fermentations', 'App\Http\Controllers\FermentationController');
  31. Route::resource('adjunctadditions', 'App\Http\Controllers\AdjunctAdditionController');
  32. Route::get('/home', [App\Http\Controllers\SummarieController::class, 'index'])->name('home');
  33. Route::get('/brewery/{breweryID}', [App\Http\Controllers\BreweryController::class, 'index'])->name('brewery');
  34. Route::get('/beer/{beerID}', [App\Http\Controllers\BeerController::class, 'index'])->name('beer');
  35. Route::get('/grain/{grainID}', [App\Http\Controllers\GraincardController::class, 'index'])->name('grain');
  36. Route::get('/yeast/{yeastID}', [App\Http\Controllers\YeastcardController::class, 'index'])->name('yeast');
  37. Route::get('/hop/{hopID}', [App\Http\Controllers\HopcardController::class, 'index'])->name('hop');
  38. Route::get('/adjunct/{adjunctID}', [App\Http\Controllers\AdjunctcardController::class, 'index'])->name('adjunct');
  39. Route::post('/search/results/{searchword}', [App\Http\Controllers\SearchController::class, 'search'])->name('search.results');
  40. Route::get('search.results', [App\Http\Controllers\SearchController::class, 'index']);