Skip to content

Commit 1066be2

Browse files
committed
Bypass JWT auth for GET /api/ca_dashboard/stats
1 parent 1ace30b commit 1066be2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/controllers/api/ca_dashboard/stats_controller.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ module Api
44
module CaDashboard
55
# Handles CRUD operations for "/api/ca_dashboard/stats"
66
class StatsController < Api::V1::BaseApiController
7+
# Allow public access / bypass JWT authentication via "POST /api/v1/authenticate"
8+
skip_before_action :authorize_request, only: [:index]
79

810
# GET /api/ca_dashboard/stats
911
def index
10-
# To access this endpoint, the user must provide a valid JWT
11-
# JWT is acquired by authenticating via POST /api/v1/authenticate
1212
base_hash = {
1313
'plans' => Plan.all,
1414
'orgs' => Org.where(managed: true).all,

0 commit comments

Comments
 (0)