Sha256: c1297eb1968a640b5919a164f07f78e9a3fb1645521003eb8e4786a0a270539b
Contents?: true
Size: 820 Bytes
Versions: 6
Compression:
Stored size: 820 Bytes
Contents
require 'cadenero/constraints/subdomain_required' Cadenero::Engine.routes.draw do namespace :v1 do constraints(Cadenero::Constraints::SubdomainRequired) do scope :module => "account" do root :to => "dashboard#index", default: :json post '/sessions', :to => "sessions#create", default: :json delete '/sessions', :to => "sessions#delete", default: :json post '/users', :to => "users#create", default: :json get '/users', :to => "users#index", default: :json get '/users/:id', :to => "users#show", as: :user, default: :json end end post '/accounts', :to => "accounts#create", as: :accounts, default: :json end root :to => "v1/account/dashboard#index", default: :json # post '/v1/accounts', :to => "v1/accounts#create", :as => :accounts end
Version data entries
6 entries across 6 versions & 1 rubygems