forked from projects/fipamo
ro
65854e3dbd
so there was an error when trying to use services for API controllers that was happening because the api middleware didn't pass the same info as web middleware, resulting in session info not being passed to controllers used in the api after a bit of reading discovered necessary middleware could be added to api routing so session data is available in in api routing whew
18 lines
542 B
PHP
18 lines
542 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use App\Http\Controllers\API\AuthAPIController;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| API Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register API routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider and all of them will
|
|
| be assigned to the "api" middleware group. Make something great!
|
|
|
|
|
*/
|
|
|
|
Route::get("/v1/status", [AuthAPIController::class, 'status']);
|