Skip to content
Extraits de code Groupes Projets
routes.rb 1,29 ko
Newer Older
maxwell's avatar
maxwell a validé
Diaspora::Application.routes.draw do |map|
maxwell's avatar
maxwell a validé
  resources :bookmarks
Raphael's avatar
Raphael a validé
  resources :users
maxwell's avatar
maxwell a validé
  resources :status_messages
Raphael's avatar
Raphael a validé
  resources :photos
maxwell's avatar
maxwell a validé
  resources :albums
  resources :groups
Raphael's avatar
Raphael a validé
  match "/images/files/*path" => "gridfs#serve"
  
  match 'warzombie', :to => "dev_utilities#warzombie"
  match 'zombiefriends', :to => "dev_utilities#zombiefriends"
  match 'zombiefriendaccept', :to => "dev_utilities#zombiefriendaccept"
  #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, :path_names  => {:sign_up  => "signup", :sign_in  => "login", :sign_out  => "logout"}
   match 'login', :to => 'devise/sessions#new', :as => "new_user_session"
   match 'logout', :to  => 'devise/sessions#destroy', :as => "destroy_user_session"
   #match 'signup', :to => 'devise/registrations#new', :as => "new_user_registration"
  
  
  #public routes
  match 'receive',              :to => 'publics#receive'
  match '.well-known/host-meta',:to => 'publics#host_meta'
  match 'webfinger',            :to => 'publics#webfinger'
  match 'hcard',                :to => 'publics#hcard'
          
  #root
  root :to => 'dashboards#index'
Raphael Sofaer's avatar
Raphael Sofaer a validé
end