Skip to content

Commit

Permalink
Merge branch 'aaron/stats-api' into deployment-portage
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronskiba committed Aug 22, 2024
2 parents e9f50c8 + 1066be2 commit 0ce2b16
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/controllers/api/ca_dashboard/stats_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ module Api
module CaDashboard
# Handles CRUD operations for "/api/ca_dashboard/stats"
class StatsController < Api::V1::BaseApiController
respond_to :json
# Allow public access / bypass JWT authentication via "POST /api/v1/authenticate"
skip_before_action :authorize_request, only: [:index]

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

0 comments on commit 0ce2b16

Please sign in to comment.