Skip to content

Commit

Permalink
add api/v1/openapi.json (#698)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbraswell authored Oct 6, 2022
1 parent 6753377 commit b7a2a3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit b7a2a3f

Please sign in to comment.