Skip to content
Extraits de code Groupes Projets
routes.rb 1,21 ko
Newer Older
  • Learn to ignore specific revisions
  • maxwell's avatar
    maxwell a validé
    Diaspora::Application.routes.draw do
    
      resources :users    #, :only => [:edit, :show, :update]
    
    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
    
      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
      match 'login',  :to => 'devise/sessions#new',      :as => "new_user_session"
      match 'logout', :to => 'devise/sessions#destroy',  :as => "destroy_user_session"
      match 'get_to_the_choppa', :to => 'devise/registrations#new', :as => "new_user_registration"
    
      
      #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 :to => 'groups#index'
    
    Raphael Sofaer's avatar
    Raphael Sofaer a validé
    end