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..3127aea 100644
--- a/src/api/config/routes.rb
+++ b/src/api/config/routes.rb
@@ -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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment