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.4 KiB
44 lines
2.4 KiB
<?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::resource('mashes', 'App\Http\Controllers\MasheController');
|
|
Route::resource('hopadditions', 'App\Http\Controllers\HopAdditionController');
|
|
Route::get('/home', [App\Http\Controllers\SummarieController::class, 'index'])->name('home');
|
|
Route::get('/fermentations', [App\Http\Controllers\FermentationController::class, 'index'])->name('fermentations');
|
|
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('/adjunctadditions', [App\Http\Controllers\AdjunctAdditionController::class, 'store'])->name('adjunctadditions.store');
|
|
Route::post('/fermentations', [App\Http\Controllers\FermentationController::class, 'store'])->name('fermentations.store');
|