Created
October 26, 2012 19:40
-
-
Save anicet/3960988 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root / torrents#index {:subdomain=>"admin"} | |
root / static#home | |
torrents GET /torrents(.:format) torrents#index | |
POST /torrents(.:format) torrents#create | |
new_torrent GET /torrents/new(.:format) torrents#new | |
edit_torrent GET /torrents/:id/edit(.:format) torrents#edit | |
torrent GET /torrents/:id(.:format) torrents#show | |
PUT /torrents/:id(.:format) torrents#update | |
DELETE /torrents/:id(.:format) torrents#destroy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RorTorrent::Application.routes.draw do | |
constraints :subdomain => 'admin' do | |
root :to => 'torrents#index' | |
end | |
root :to => 'static#home' | |
get 'torrents', :to => 'torrents#index' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment