Skip to content
Extraits de code Groupes Projets
routes.rb 1,41 ko
Newer Older
  • Learn to ignore specific revisions
  • 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 :authors
      resources :ostatus_posts
    
      match 'ostatus', :to => "dashboards#ostatus"
    
    
    Raphael's avatar
    Raphael a validé
      match "/images/files/*path" => "gridfs#serve"
      
    
    ilya's avatar
    ilya a validé
      match 'warzombie', :to => "dashboards#warzombie"
    
    Raphael's avatar
    Raphael a validé
      match 'zombiefriends', :to => "dashboards#zombiefriends"
    
    Raphael's avatar
    Raphael a validé
      match 'zombiefriendaccept', :to => "dashboards#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 'hubbub',               :to => 'publics#hubbub'
      match '.well-known/host-meta',:to => 'publics#host_meta'
      match 'webfinger',            :to => 'publics#webfinger'
      match 'hcard',                :to => 'publics#hcard'
              
      #root
    
    Raphael Sofaer's avatar
    Raphael Sofaer a validé
    end