2013-09-23 17:05:36 +00:00
|
|
|
Asciinema::Application.routes.draw do
|
2012-03-01 23:25:55 +00:00
|
|
|
|
2012-12-01 18:01:32 +00:00
|
|
|
get "/browse" => "asciicasts#index", :as => :browse
|
2013-11-18 13:29:18 +00:00
|
|
|
get "/browse/:category" => "asciicasts#index", :as => :category
|
2012-07-25 18:24:20 +00:00
|
|
|
|
2012-11-19 22:10:21 +00:00
|
|
|
resources :asciicasts, :path => 'a' do
|
|
|
|
member do
|
|
|
|
get :raw
|
2013-11-22 20:10:40 +00:00
|
|
|
get :example
|
2012-11-19 22:10:21 +00:00
|
|
|
end
|
|
|
|
end
|
2011-11-23 21:30:09 +00:00
|
|
|
|
2012-12-01 18:01:32 +00:00
|
|
|
get "/~:nickname" => "users#show", :as => :profile
|
2012-03-04 22:44:36 +00:00
|
|
|
|
2013-11-18 17:04:06 +00:00
|
|
|
get "/docs" => "docs#show", :page => 'getting-started', :as => :docs_index
|
2012-12-01 18:01:32 +00:00
|
|
|
get "/docs/:page" => "docs#show", :as => :docs
|
2012-03-04 21:44:04 +00:00
|
|
|
|
2013-10-19 18:59:39 +00:00
|
|
|
get "/auth/browser_id/callback" => "sessions#create"
|
|
|
|
get "/auth/:provider/callback" => "account_merges#create"
|
2012-12-01 18:01:32 +00:00
|
|
|
get "/auth/failure" => "sessions#failure"
|
2011-11-21 21:36:42 +00:00
|
|
|
|
2012-12-01 18:01:32 +00:00
|
|
|
get "/login" => "sessions#new"
|
|
|
|
get "/logout" => "sessions#destroy"
|
2011-11-21 21:36:42 +00:00
|
|
|
|
2012-12-01 18:01:32 +00:00
|
|
|
get "/connect/:user_token" => "user_tokens#create"
|
2012-03-04 19:30:26 +00:00
|
|
|
|
2013-10-19 16:25:30 +00:00
|
|
|
resource :user
|
2012-03-05 23:25:21 +00:00
|
|
|
|
2012-03-04 22:07:45 +00:00
|
|
|
namespace :api do
|
2013-08-08 13:25:27 +00:00
|
|
|
resources :asciicasts
|
2012-03-04 22:07:45 +00:00
|
|
|
end
|
|
|
|
|
2013-08-08 12:31:03 +00:00
|
|
|
root 'home#show'
|
2012-04-29 08:47:33 +00:00
|
|
|
|
2013-11-18 11:22:29 +00:00
|
|
|
get '/about' => 'pages#show', page: :about, as: :about
|
2013-10-25 18:01:56 +00:00
|
|
|
get '/privacy' => 'pages#show', page: :privacy, as: :privacy
|
2013-10-26 20:50:54 +00:00
|
|
|
get '/tos' => 'pages#show', page: :tos, as: :tos
|
2013-10-25 18:01:56 +00:00
|
|
|
|
2012-08-28 20:59:27 +00:00
|
|
|
mount JasmineRails::Engine => "/specs" unless Rails.env.production?
|
|
|
|
|
2013-08-10 14:51:21 +00:00
|
|
|
get '/test/widget/:id' => 'test_widget#show' if Rails.env.test?
|
2011-11-21 21:36:42 +00:00
|
|
|
end
|