allow api prefix
This commit is contained in:
parent
30587fb3df
commit
b3f59a7513
|
@ -34,7 +34,7 @@ use Illuminate\Support\Facades\Storage;
|
|||
| is assigned the "api" middleware group. Enjoy building your API!
|
||||
|
|
||||
*/
|
||||
|
||||
Route::group(['prefix' => $_ENV['API_PREFIX'] ?? ''], function () {
|
||||
Route::group(['middleware' => 'auth:api'], function () {
|
||||
Route::post('logout', [LoginController::class, 'logout']);
|
||||
|
||||
|
@ -235,3 +235,5 @@ Route::get('local/temp/{path}', function (Request $request, string $path) {
|
|||
|
||||
Route::get('caddy/ask-certificate/{secret?}', [\App\Http\Controllers\CaddyController::class, 'ask'])
|
||||
->name('caddy.ask')->middleware(\App\Http\Middleware\CaddyRequestMiddleware::class);
|
||||
}
|
||||
)
|
Loading…
Reference in New Issue