Sha256: 8e1cb0278f47192b9f4b0276d7e55b7e6b5deefce4148c2a21604ef51df5ee07

Contents?: true

Size: 764 Bytes

Versions: 2

Compression:

Stored size: 764 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#show", :as => :users, 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

2 entries across 2 versions & 1 rubygems

Version Path
cadenero-0.0.2.b2 config/routes.rb
cadenero-0.0.2.b1 config/routes.rb