Skip to content
Extraits de code Groupes Projets
routes.rb 1,87 ko
Newer Older
  • Learn to ignore specific revisions
  • Raphael's avatar
    Raphael a validé
    #   Copyright (c) 2010, Diaspora Inc.  This file is
    
    Raphael's avatar
    Raphael a validé
    #   licensed under the Affero General Public License version 3.  See
    #   the COPYRIGHT file.
    
    maxwell's avatar
    maxwell a validé
    Diaspora::Application.routes.draw do
    
    Raphael's avatar
    Raphael a validé
      resources :people, :only => [:index, :show, :destroy]
    
      resources :users, :except => [:create, :new, :show]
    
    Raphael's avatar
    Raphael a validé
      resources :comments, :except => [:index]
      resources :requests, :except => [:edit, :update]
    
    Raphael's avatar
    Raphael a validé
      resources :photos, :except => [:index]
    
    maxwell's avatar
    maxwell a validé
      resources :albums
    
    Raphael's avatar
    Raphael a validé
      match 'aspects/move_friends', :to => 'aspects#move_friends', :as => 'move_friends'
      match 'aspects/move_friend', :to => 'aspects#move_friend', :as => 'move_friend'
    
      match 'aspects/manage', :to => 'aspects#manage'
      resources :aspects, :except => [:edit]
    
    
      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"
    
    ilya's avatar
    ilya a validé
      match 'set_profile_photo', :to => "dev_utilities#set_profile_photo"
    
      #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, :controllers => {:registrations => "registrations"}
    
      match 'login',  :to => 'devise/sessions#new',      :as => "new_user_session"
      match 'logout', :to => 'devise/sessions#destroy',  :as => "destroy_user_session"
    
      match 'signup', :to => 'registrations#new', :as => "new_user_registration"
    
    ilya's avatar
    ilya a validé
      match 'get_to_the_choppa', :to => redirect("/signup") 
    
      #public routes
    
      #
      match 'webfinger', :to => 'publics#webfinger'
    
    Raphael's avatar
    Raphael a validé
      match 'hcard/users/:id',    :to => 'publics#hcard'
    
      match '.well-known/host-meta',:to => 'publics#host_meta'
      match 'receive/users/:id',     :to => 'publics#receive'
    
      match 'log', :to => "dev_utilities#log"
    
    Raphael's avatar
    Raphael a validé
      root :to => 'aspects#index'
    
    Raphael Sofaer's avatar
    Raphael Sofaer a validé
    end