File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1
1
class StatsController < ApplicationController
2
- # GET /stats.json
3
- def api
4
- # NOTE: Prototype. Need to do refactoring.
5
- @stats_data = [
6
- active_dojos : Dojo . active_dojos_count ,
7
- ]
8
-
9
- render json : @stats_data
10
- end
11
2
12
3
# GET /stats[.json]
13
4
def show
@@ -111,3 +102,12 @@ def show
111
102
# %td= num
112
103
# /%td= @participants.values.sum
113
104
105
+ # NOTE: Rough draft. Need to be reconsidered.
106
+ # GET /stats.json
107
+ #def api
108
+ # @stats_data = [
109
+ # active_dojos: Dojo.active_dojos_count,
110
+ # ]
111
+ #
112
+ # render json: @stats_data
113
+ #end
Original file line number Diff line number Diff line change 57
57
58
58
get "/podcast" , to : redirect ( '/podcasts' )
59
59
get "/podcasts/feed" => "podcasts#feed"
60
- get '/stats.json' => "stats#api"
61
60
get "/stats" => "stats#show"
62
61
get "/pokemon" => "pokemons#new"
63
62
post "/pokemon" => "pokemons#create"
You can’t perform that action at this time.
0 commit comments