You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
asciinema.org/config/routes.rb

41 lines
1.1 KiB
Ruby

Asciinema::Application.routes.draw do
get "/browse" => "asciicasts#index", :as => :browse
get "/browse/:category" => "asciicasts#index", :as => :category
resources :asciicasts, :path => 'a' do
member do
get :bare
get :raw, action: :bare
get :example
end
end
get "/~:nickname" => "users#show", :as => :profile
get "/docs" => "docs#show", :page => 'getting-started', :as => :docs_index
get "/docs/:page" => "docs#show", :as => :docs
get "/auth/browser_id/callback" => "sessions#create"
get "/auth/:provider/callback" => "account_merges#create"
get "/auth/failure" => "sessions#failure"
get "/login" => "sessions#new"
get "/logout" => "sessions#destroy"
get "/connect/:user_token" => "user_tokens#create"
resource :user
namespace :api do
resources :asciicasts
end
root 'home#show'
get '/about' => 'pages#show', page: :about, as: :about
get '/privacy' => 'pages#show', page: :privacy, as: :privacy
get '/tos' => 'pages#show', page: :tos, as: :tos
get '/contributing' => 'pages#show', page: :contributing, as: :contributing
end