Skip to content

Commit

Permalink
allow guest to view scores
Browse files Browse the repository at this point in the history
  • Loading branch information
notbakaneko committed Jul 28, 2023
1 parent ecc3d6a commit 0d8392c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ScoresController extends BaseController
{
public function __construct()
{
$this->middleware('auth');
$this->middleware('auth', ['except' => ['index']]);
$this->middleware('require-scopes:public', ['only' => ['index']]);
}

Expand Down
1 change: 0 additions & 1 deletion tests/api_routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,6 @@
"middlewares": [
"App\\Http\\Middleware\\ThrottleRequests:1200,1,api:",
"App\\Http\\Middleware\\RequireScopes",
"Illuminate\\Auth\\Middleware\\Authenticate",
"App\\Http\\Middleware\\RequireScopes:public"
],
"scopes": [
Expand Down

0 comments on commit 0d8392c

Please sign in to comment.