Skip to content

Commit 84aa598

Browse files
committed
Hotfix: Not call Scrivito in GET /stats routing
1 parent b6e730d commit 84aa598

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

config/routes.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
get "/charter_en" => "docs#show", id: 'charter_en'
1414
resources :docs, only: %i(index show)
1515
resources :spaces, only: %i(index)
16-
resources :stats, only: %i(show)
16+
17+
get "/stats" => "stats#show"
18+
# TODO: Need to investigate why the following code calls Scrivito.
19+
# Hotfix with the code above that works correctly.
20+
#resources :stats, only: %i(show)
1721

1822
# Redirects
1923
get "/releases/2016/12/12/new-backend", to: redirect('/news/2016/12/12/new-backend')

0 commit comments

Comments
 (0)