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

23 lines
461 B
Ruby

AsciiIo::Application.routes.draw do
resources :comments
resources :asciicasts
match ':id' => 'asciicasts#show', :constraints => { :id => /\d+/ }
namespace :api do
resources :asciicasts do
resources :comments
end
end
match "/auth/:provider/callback" => "sessions#create"
match "/auth/failure" => "sessions#failure"
match "/login" => "sessions#new"
match "/logout" => "sessions#destroy"
root :to => 'asciicasts#index'
end