Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 439bdc281a
Fetching contributors…

Cannot retrieve contributors at this time

46 lines (34 sloc) 1.34 kb
HacketyHackCom::Application.routes.draw do
resources :questions do
resources :answers
end
get "/downloads/latest/:platform", :to => "static#download", :as => 'downloads'
get "/downloads/latest", :to => "static#download", :as => 'download'
match "/download" => redirect("/downloads/latest")
scope '/support', :as => 'support' do
resources :questions, :controller => 'questions'
end
constraints(ApiConstraint) do
match '/' => 'static#api_root'
match '/versions/newest' => 'static#newest_version', :as => "newest_version"
scope :module => "Api" do
resources :rels, :only => [:index, :show]
resources :programs
end
end
resources :programs, :only => [:index, :show]
devise_for :users do
get "login" => "devise/sessions#new", :as => "login"
get "logout" => "devise/sessions#destroy", :as => "logout"
end
resources :users, :constraints => { :id => /.*/ }, :only => :show do
get "following" => "users#following", :as => :following
get "followers" => "users#followers", :as => :followers
post "follow" => "users#follow", :as => :follow
post "unfollow" => "users#unfollow", :as => :unfollow
resources :programs
end
# match ':user_id/:slug', :to => "programs#show", :as => :program
match 'faq' => 'static#faq'
root :to => "static#root"
end
Jump to Line
Something went wrong with that request. Please try again.