new helpdesk module
This commit is contained in:
@@ -1,18 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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!
|
||||
|
|
||||
*/
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::middleware('auth:api')->get('/helpdesk', function (Request $request) {
|
||||
return $request->user();
|
||||
});
|
||||
Route::get('/status', static fn (): array => [
|
||||
'module' => 'helpdesk',
|
||||
'status' => 'ok',
|
||||
])->name('status');
|
||||
|
||||
Reference in New Issue
Block a user