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.
16 lines
364 B
Ruby
16 lines
364 B
Ruby
AsciiIo::Application.routes.draw do
|
|
resources :asciicasts
|
|
match ':id' => 'asciicasts#show', :constraints => { :id => /\d+/ }
|
|
|
|
namespace :api do
|
|
resources :asciicasts
|
|
end
|
|
|
|
match "/auth/:provider/callback" => "sessions#create"
|
|
match "/auth/failure" => "sessions#failure"
|
|
|
|
match "/logout" => "sessions#destroy"
|
|
|
|
root :to => 'asciicasts#index'
|
|
end
|