Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: bac6b7d6cd
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (23 sloc) 1.06 kb
TravisCi::Application.routes.draw do
devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" }
as :user do
get 'users/sign_out', :to => 'devise/sessions#destroy', :as => :destroy_session
end
resource :profile
resources :repositories do
resources :builds
end
resources :builds do
put 'log', :on => :member, :as => :log
end
resources :jobs
resources :workers
match ":user/:name.png", :to => 'repositories#show', :format => 'png'
# need to include the jammit route here so it preceeds the user route below
match "/#{Jammit.package_path}/:package.:extension", :to => 'jammit#package', :as => :jammit, :constraints => { :extension => /.+/ }
match ":user", :to => redirect("/#!/%{user}")
match ":user/:repository", :to => redirect("/#!/%{user}/%{repository}")
match ":user/:repository/builds", :to => redirect("/#!/%{user}/%{repository}/builds")
match ":user/:repository/builds/:id", :to => redirect("/#!/%{user}/%{repository}/builds/%{id}")
root :to => 'application#index'
end
Jump to Line
Something went wrong with that request. Please try again.