diaspora/config/routes.rb
2010-08-17 17:54:20 -07:00

36 lines
1.2 KiB
Ruby

Diaspora::Application.routes.draw do |map|
resources :blogs
resources :bookmarks
resources :people
resources :users, :except => [:new, :create]
resources :status_messages
resources :comments
resources :requests
resources :photos
resources :albums
resources :groups
match "/images/files/*path" => "gridfs#serve"
match 'warzombie', :to => "dev_utilities#warzombie"
match 'zombiefriends', :to => "dev_utilities#zombiefriends"
match 'zombiefriendaccept', :to => "dev_utilities#zombiefriendaccept"
match 'set_backer_number', :to => "dev_utilities#set_backer_number"
#routes for devise, not really sure you will need to mess with this in the future, lets put default,
#non mutable stuff in anohter file
devise_for :users do
match 'login', :to => 'devise/sessions#new'
match 'logout', :to => 'devise/sessions#destroy'
match 'get_to_the_choppa', :to => 'devise/registrations#new'
end
#public routes
#
match 'webfinger', :to => 'publics#webfinger'
match 'users/:id/hcard', :to => 'publics#hcard'
match '.well-known/host-meta',:to => 'publics#host_meta'
match 'receive/users/:id', :to => 'publics#receive'
#root
root :to => 'groups#index'
end