changes
This commit is contained in:
0
Modules/Stock/routes/.gitkeep
Normal file
0
Modules/Stock/routes/.gitkeep
Normal file
19
Modules/Stock/routes/api.php
Normal file
19
Modules/Stock/routes/api.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Modules\Stock\Http\Controllers\StockController;
|
||||
|
||||
/*
|
||||
*--------------------------------------------------------------------------
|
||||
* API Routes
|
||||
*--------------------------------------------------------------------------
|
||||
*
|
||||
* Here is where you can register API routes for your application. These
|
||||
* routes are loaded by the RouteServiceProvider within a group which
|
||||
* is assigned the "api" middleware group. Enjoy building your API!
|
||||
*
|
||||
*/
|
||||
|
||||
Route::middleware(['auth:sanctum'])->prefix('v1')->group(function () {
|
||||
Route::apiResource('stock', StockController::class)->names('stock');
|
||||
});
|
23
Modules/Stock/routes/web.php
Normal file
23
Modules/Stock/routes/web.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Modules\Stock\Http\Controllers\StockController;
|
||||
use Modules\Stock\Http\Controllers\StockLocationController;
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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('stock', StockController::class)->names('stock');
|
||||
Route::resource('stockLocation', StockLocationController::class)->names('stockLocation');
|
||||
|
||||
});
|
Reference in New Issue
Block a user