From 0f36c7931fe04bb3d6a3fd70a25fe1090f48e774 Mon Sep 17 00:00:00 2001 From: Azul Date: Sat, 8 Dec 2012 16:05:40 +0100 Subject: serve api version 1 in /1/ Just a very simple start for now. Do we want to use the api for the secure remote password auth from js? --- users/config/routes.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'users/config') diff --git a/users/config/routes.rb b/users/config/routes.rb index 1d144b4..6de216f 100644 --- a/users/config/routes.rb +++ b/users/config/routes.rb @@ -1,5 +1,10 @@ Rails.application.routes.draw do + scope "/1", :module => "V1", defaults: {format: 'json'} do + resources :sessions, :only => [:new, :create, :update, :destroy] + resources :users, :only => [:create] + end + get "login" => "sessions#new", :as => "login" get "logout" => "sessions#destroy", :as => "logout" resources :sessions, :only => [:new, :create, :update, :destroy] -- cgit v1.2.3