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.

47 lines
2.8 KiB

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