|
|
<?php
use Illuminate\Support\Facades\Route;
/* |-------------------------------------------------------------------------- | 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('/', function () { return view('welcome'); });
Auth::routes(['register' => false]); Route::any('/register', function() { return view('welcome'); });
Route::resource('breweries', 'App\Http\Controllers\BrewerieController'); Route::resource('beers', 'App\Http\Controllers\SummarieController'); Route::resource('grains', 'App\Http\Controllers\GrainController'); Route::resource('hops', 'App\Http\Controllers\HopController'); Route::resource('yeasts', 'App\Http\Controllers\YeastController'); Route::resource('adjuncts', 'App\Http\Controllers\AdjunctController'); Route::resource('grainbills', 'App\Http\Controllers\GrainbillController'); Route::get('/home', [App\Http\Controllers\SummarieController::class, 'index'])->name('home'); Route::get('/fermentations', [App\Http\Controllers\FermentationController::class, 'index'])->name('fermentations'); Route::get('/mashes', [App\Http\Controllers\MasheController::class, 'index'])->name('mashes'); Route::get('/hopadditions', [App\Http\Controllers\HopAdditionController::class, 'index'])->name('hopadditions'); Route::get('/adjunctadditions', [App\Http\Controllers\AdjunctAdditionController::class, 'index'])->name('adjunctadditions'); Route::get('/brewery/{breweryID}', [App\Http\Controllers\BreweryController::class, 'index'])->name('brewery'); Route::get('/beer/{beerID}', [App\Http\Controllers\BeerController::class, 'index'])->name('beer'); Route::get('/grain/{grainID}', [App\Http\Controllers\GraincardController::class, 'index'])->name('grain'); Route::get('/yeast/{yeastID}', [App\Http\Controllers\YeastcardController::class, 'index'])->name('yeast'); Route::get('/hop/{hopID}', [App\Http\Controllers\HopcardController::class, 'index'])->name('hop'); Route::get('/adjunct/{adjunctID}', [App\Http\Controllers\AdjunctcardController::class, 'index'])->name('adjunct'); Route::post('/mashes', [App\Http\Controllers\MasheController::class, 'store'])->name('mash.store'); Route::post('/hopadditions', [App\Http\Controllers\HopAdditionController::class, 'store'])->name('hopadditions.store'); Route::post('/adjunctadditions', [App\Http\Controllers\AdjunctAdditionController::class, 'store'])->name('adjunctadditions.store'); Route::post('/fermentations', [App\Http\Controllers\FermentationController::class, 'store'])->name('fermentations.store');
|