26 lines
842 B
PHP
26 lines
842 B
PHP
|
<?php
|
||
|
|
||
|
use Modules\CetakLabel\Http\Controllers\DirectoratController;
|
||
|
use Nwidart\Modules\Facades\Module;
|
||
|
|
||
|
/*
|
||
|
|--------------------------------------------------------------------------
|
||
|
| 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!
|
||
|
|
|
||
|
*/
|
||
|
|
||
|
|
||
|
$module = Module::find('CetakLabel');
|
||
|
$domain= config($module->getLowerName().'.domain');
|
||
|
|
||
|
Route::domain($domain)->group(function () {
|
||
|
Route::middleware('auth:sanctum')->group(function () {
|
||
|
Route::resource('directorats', DirectoratController::class);
|
||
|
});
|
||
|
});
|