Core/Modules/CetakLabel/Routes/api.php

21 lines
650 B
PHP
Raw Normal View History

2023-05-10 15:15:50 +00:00
<?php
2023-05-12 02:40:41 +00:00
use Modules\CetakLabel\Http\Controllers\Api\DirectoratController;
2023-05-10 15:15:50 +00:00
2023-05-12 02:40:41 +00:00
/*
|--------------------------------------------------------------------------
| 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!
|
*/
2023-05-10 15:15:50 +00:00
2023-05-12 02:40:41 +00:00
Route::domain('cetaklabel.io')->group(function () {
Route::middleware('auth:sanctum')->group(function () {
Route::resource('directorats', DirectoratController::class);
2023-05-10 15:15:50 +00:00
});
2023-05-12 02:40:41 +00:00
});