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.

51 lines
3.3 KiB

3 years ago
3 years ago
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::get('/home', [App\Http\Controllers\SummarieController::class, 'index'])->name('home');
  25. Route::get('/adjuncts', [App\Http\Controllers\AdjunctController::class, 'index'])->name('adjuncts');
  26. //Route::get('/hops', [App\Http\Controllers\HopController::class, 'index'])->name('hops');
  27. Route::get('/yeasts', [App\Http\Controllers\YeastController::class, 'index'])->name('yeasts');
  28. Route::get('/fermentations', [App\Http\Controllers\FermentationController::class, 'index'])->name('fermentations');
  29. Route::get('/grainbills', [App\Http\Controllers\GrainbillController::class, 'index'])->name('grainbills');
  30. Route::get('/mashes', [App\Http\Controllers\MasheController::class, 'index'])->name('mashes');
  31. Route::get('/hopadditions', [App\Http\Controllers\HopAdditionController::class, 'index'])->name('hopadditions');
  32. Route::get('/adjunctadditions', [App\Http\Controllers\AdjunctAdditionController::class, 'index'])->name('adjunctadditions');
  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('/hops', [App\Http\Controllers\HopController::class, 'store'])->name('hops.store');
  40. Route::post('/yeasts', [App\Http\Controllers\YeastController::class, 'store'])->name('yeasts.store');
  41. Route::post('/adjuncts', [App\Http\Controllers\AdjunctController::class, 'store'])->name('adjuncts.store');
  42. Route::post('/grainbills', [App\Http\Controllers\GrainbillController::class, 'store'])->name('grainbills.store');
  43. Route::post('/mashes', [App\Http\Controllers\MasheController::class, 'store'])->name('mash.store');
  44. Route::post('/hopadditions', [App\Http\Controllers\HopAdditionController::class, 'store'])->name('hopadditions.store');
  45. Route::post('/adjunctadditions', [App\Http\Controllers\AdjunctAdditionController::class, 'store'])->name('adjunctadditions.store');
  46. Route::post('/fermentations', [App\Http\Controllers\FermentationController::class, 'store'])->name('fermentations.store');