From b7a2a3fd092daeabf7eb9eca0acf647a0d4e76eb Mon Sep 17 00:00:00 2001 From: jbraswell <10187286+jbraswell@users.noreply.github.com> Date: Thu, 6 Oct 2022 01:05:44 -0400 Subject: [PATCH] add api/v1/openapi.json (#698) --- src/routes/api.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/api.php b/src/routes/api.php index 3bea9f2c8..f4ba8ebe5 100644 --- a/src/routes/api.php +++ b/src/routes/api.php @@ -18,6 +18,7 @@ | */ +Route::get('/openapi.json', fn () => response(File::get(storage_path('api-docs/api-docs.json')))->withHeaders(['content-type' => 'text/json'])); Route::post('/auth/token', [TokenController::class, 'token']); Route::middleware('auth:sanctum')->group(function () {