move routes from kernel to module
This commit is contained in:
parent
0f0c4aae48
commit
ca7a5bca12
|
@ -1,4 +1,9 @@
|
||||||
Rails.application.routes.draw do
|
Rails.application.routes.draw do
|
||||||
|
post "/register/site" => "admin/register_api#register"
|
||||||
|
post "/register/store_token" => "admin/register_api#send_store_token"
|
||||||
|
get "/register/confirm_email" => "admin/register_api#confirm_email"
|
||||||
|
get "/site/permissions" => "admin/register_api#check_permissions"
|
||||||
|
get "/site/send_email" => "admin/register_api#send_email"
|
||||||
|
|
||||||
locales = Site.first.in_use_locales rescue I18n.available_locales
|
locales = Site.first.in_use_locales rescue I18n.available_locales
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ module RegisteredSites
|
||||||
authorizable
|
authorizable
|
||||||
taggable "RegisteredSite"
|
taggable "RegisteredSite"
|
||||||
categorizable
|
categorizable
|
||||||
set_keyword_contstraints ['/git-auth']
|
set_keyword_contstraints ['/git-auth','/register/','/site/permissions','/site/send_email']
|
||||||
side_bar do
|
side_bar do
|
||||||
head_label_i18n 'registered_sites.registered_sites', icon_class: "icons-earth"
|
head_label_i18n 'registered_sites.registered_sites', icon_class: "icons-earth"
|
||||||
available_for "users"
|
available_for "users"
|
||||||
|
|
Loading…
Reference in New Issue