28 lines
1.1 KiB
PHP
28 lines
1.1 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use Modules\Ingredient\Http\Controllers\IngredientCategoryController;
|
|
use Modules\Ingredient\Http\Controllers\IngredientController;
|
|
use Modules\Ingredient\Http\Controllers\UnitController;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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::group([], function () {
|
|
Route::resource('ingredient', IngredientController::class)->names('ingredient');
|
|
Route::resource('ingredientCategory', IngredientCategoryController::class)->names('ingredientCategory');
|
|
Route::resource('unit', UnitController::class)->names('unit');
|
|
Route::get('ingredient-details', [IngredientController::class, 'getIngredientDetail'])->name('get-ingredient-detail');
|
|
Route::get('/ingredients-by-category', [IngredientController::class, 'getIngredientsByCategory'])->name('ingredients-by-category');
|
|
|
|
|
|
});
|