We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
GET /api/ca_dashboard/stats
1 parent 1ace30b commit 1066be2Copy full SHA for 1066be2
app/controllers/api/ca_dashboard/stats_controller.rb
@@ -4,11 +4,11 @@ module Api
4
module CaDashboard
5
# Handles CRUD operations for "/api/ca_dashboard/stats"
6
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]
9
10
# GET /api/ca_dashboard/stats
11
def index
- # To access this endpoint, the user must provide a valid JWT
- # JWT is acquired by authenticating via POST /api/v1/authenticate
12
base_hash = {
13
'plans' => Plan.all,
14
'orgs' => Org.where(managed: true).all,
0 commit comments