FleetCart/Modules/Api/Routes/admin.php

10 lines
347 B
PHP

<?php
use Illuminate\Support\Facades\Route;
use Modules\Api\Http\Controllers\ApiAuthController;
Route::prefix('api')->group(function () {
Route::post('/login', [ApiAuthController::class, 'login'])->name('api.auth.login');
Route::post('/logout', [ApiAuthController::class, 'logout'])->middleware('api_auth')->name('api.auth.logout');
});