Created
June 4, 2014 08:22
-
-
Save Keloran/758a827e5d7713cbad13 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Carprk::Application.routes.draw do | |
root :to => "home#index" | |
devise_for :users, :controllers => {:registrations => "registrations"} | |
resources :users | |
# Get Routes | |
get '/privacy' => 'privacy#index' | |
get '/careers' => 'careers#index' | |
get '/faq' => 'faq#index' | |
get '/terms' => 'terms#index' | |
get '/contact' => 'contact#index' | |
get '/carparks' => 'carparks#index' | |
get '/deals' => 'deals#index' | |
get '/admin' => 'admin#index' | |
get '/book' => 'home#index' | |
get '/about' => 'about#index' | |
get '/help' => 'help#index' | |
get '/newsletter' => 'contact#newsletter' | |
# Post Routes | |
post '/' => 'home#getCarParks' | |
post '/book' => 'book#chooseCarPark' | |
post "/details" => "book#details" | |
post "/finish" => "book#finish" | |
# Redirect unknown | |
get '*path' => 'home#index' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment