Skip to content

Commit

Permalink
Explore page support for authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
musa11971 committed Sep 10, 2019
1 parent 947a529 commit fc07642
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion public/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,14 @@
},
"/explore": {
"get": {
"security": [
{},
{
"kurozoraBearer": []
}
],
"tags": ["explore"],
"summary": "Explore page.",
"summary": "(optional authentication) Explore page.",
"description": "This endpoint will retrieve the details to for the explore page.",
"responses": {
"200": {
Expand Down
3 changes: 2 additions & 1 deletion routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
Route::group(['prefix' => 'v1'], function () {
Route::get('/info', [APIController::class, 'info']);

Route::get('/explore', [ExplorePageController::class, 'explore']);
Route::get('/explore', [ExplorePageController::class, 'explore'])
->middleware('kurozora.userauth:optional');

Route::prefix('/users')->group(function() {
Route::post('/', [UserController::class, 'register']);
Expand Down

0 comments on commit fc07642

Please sign in to comment.