Sha256: 67b6928de2cb32dfa53202c34b15fb98bb378fc8dffc86461ce70c0ead289e83

Contents?: true

Size: 691 Bytes

Versions: 3

Compression:

Stored size: 691 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
      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

3 entries across 3 versions & 1 rubygems

Version Path
cadenero-0.0.2.a3 config/routes.rb
cadenero-0.0.2.a2 config/routes.rb
cadenero-0.0.2.a1 config/routes.rb