32 lines
1.5 KiB
PHP
32 lines
1.5 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use Modules\Product\Http\Controllers\CategoryController;
|
|
use Modules\Product\Http\Controllers\FabricCategoryController;
|
|
use Modules\Product\Http\Controllers\ProductController;
|
|
use Modules\Product\Http\Controllers\SubCategoryController;
|
|
use Modules\Product\Http\Controllers\WarehouseController;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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('product', ProductController::class)->names('product');
|
|
Route::resource('category', CategoryController::class)->names('category');
|
|
Route::resource('sub-category', SubCategoryController::class)->names('subCategory');
|
|
Route::resource('warehouse', WarehouseController::class)->names('warehouse');
|
|
Route::resource('fabricCategory', FabricCategoryController::class)->names('fabricCategory');
|
|
Route::get('get-sub-categories', [SubCategoryController::class, 'getSubCategories'])->name('getSubCategories');
|
|
Route::get('product-details', [ProductController::class, 'getProductDetail'])->name('get-product-detail');
|
|
Route::get('/products-by-category', [ProductController::class, 'getProductsByCategory'])->name('products-by-category');
|
|
|
|
});
|