mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-12 12:10:41 -05:00
Installs Scribe for (mostly) automatic API documentation. Does a pretty good job and it's pretty painless to set-up. I'll have to configure it to work in the CI and to ensure that the static files are being pushed to production as they should be, but this is a good start.
11 lines
350 B
PHP
11 lines
350 B
PHP
<?php
|
|
|
|
use App\Http\Controllers\Api\AuthController;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::post('/login', [AuthController::class, 'login']);
|
|
Route::group(['middleware' => 'auth:sanctum'], function () {
|
|
Route::delete('/logout', [AuthController::class, 'logout']);
|
|
Route::delete('/logout/all', [AuthController::class, 'logoutAll']);
|
|
});
|