summaryrefslogtreecommitdiff
path: root/users/config
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-01-16 13:16:38 +0100
committerAzul <azul@leap.se>2013-01-16 13:16:38 +0100
commit1cf4cc5c8d571b571367a08f5e201be868289ed1 (patch)
tree30ae56836d67dad8521d68f29f60a25aff8c6742 /users/config
parent8445e6b1a026c8f15fffae7544b84407e9bbce1b (diff)
using subdomain for api requests properly
Diffstat (limited to 'users/config')
-rw-r--r--users/config/routes.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/users/config/routes.rb b/users/config/routes.rb
index 723d737..0c2d8d9 100644
--- a/users/config/routes.rb
+++ b/users/config/routes.rb
@@ -1,11 +1,11 @@
Rails.application.routes.draw do
constraints :subdomain => "api" do
- namespace "api", :path => nil do
- scope "/1", :module => "V1", defaults: {format: 'json'} do
- resources :sessions, :only => [:new, :create, :update, :destroy]
- resources :users, :only => [:create]
- end
+ namespace "api", { module: "V1",
+ path: "/1/",
+ defaults: {format: 'json'} } do
+ resources :sessions, :only => [:new, :create, :update, :destroy]
+ resources :users, :only => [:create]
end
end