Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
diff --git a/src/api/config/routes.rb b/src/api/config/routes.rb
index 66861c4..7383057 100644
--- a/src/api/config/routes.rb
+++ b/src/api/config/routes.rb
@@ -263,7 +263,7 @@ OBSApi::Application.routes.draw do
post 'user/register' => :register
get 'user/register_user' => :register_user
- get 'user/login' => :login
+ get 'user/login' => :login, constraints: cons
post 'user/logout' => :logout
get 'user/logout' => :logout
@@ -281,7 +281,7 @@ OBSApi::Application.routes.draw do
get 'user/autocomplete' => :autocomplete
get 'user/tokens' => :tokens
- post 'user/do_login' => :do_login
+ post 'user/do_login' => :do_login, constraints: cons
get 'configuration/users/:user' => :edit, constraints: cons, as: 'configuration_user'
post 'user/notifications' => :update_notifications
@@ -361,7 +361,7 @@ OBSApi::Application.routes.draw do
### /person
post 'person' => 'person#command'
get 'person' => 'person#show'
- post 'person/:login/login' => 'person#login' # temporary hack for webui, do not use, to be removed
+ post 'person/:login/login' => 'person#login', constraints: cons # temporary hack for webui, do not use, to be removed
get 'person/:login/token' => 'person#tokenlist'
post 'person/:login/token' => 'person#command_token'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment