Skip to content

Instantly share code, notes, and snippets.

@ziyan-junaideen
Created March 10, 2015 12:01
Show Gist options
  • Save ziyan-junaideen/d131f3abf2a62670c454 to your computer and use it in GitHub Desktop.
Save ziyan-junaideen/d131f3abf2a62670c454 to your computer and use it in GitHub Desktop.
require "subscribem/constraints/subdomain_required"
Subscribem::Engine.routes.draw do
constraints(Subscribem::Constraints::SubdomainRequired) do
scope :module => "account" do
get "/", :to => "dashboard#index", as: :account_root
end
end
get "/", to: "dashboard#index", as: :root
get "/sign_up", :to => "accounts#new", :as => :sign_up
post "/accounts", :to => "accounts#create", :as => :accounts
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment