Skip to content
Extraits de code Groupes Projets
routes.rb 2,54 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 or later.  See
    
    Raphael's avatar
    Raphael a validé
    #   the COPYRIGHT file.
    
    maxwell's avatar
    maxwell a validé
    Diaspora::Application.routes.draw do
    
    danielvincent's avatar
    danielvincent a validé
      resources :people,          :only   => [:index, :show, :destroy]
      resources :status_messages, :only   => [:create, :destroy, :show]
      resources :comments,        :except => [:index]
      resources :requests,        :except => [:edit, :update]
      resources :photos,          :except => [:index]
    
    maxwell's avatar
    maxwell a validé
      resources :albums
    
    maxwell's avatar
    maxwell a validé
      resources :omniauth_services
    
      match '/auth/:provider/callback' => 'omniauth_services#create'
    
    
      devise_for :users, :controllers => {:registrations => "registrations",
    
                                          :password      => "devise/passwords",
    
    ilya's avatar
    ilya a validé
                                          :invitations    => "invitations"}
    
      match 'public/:username',        :to => 'users#public'
      match 'users/export',            :to => 'users#export'
    
      match 'users/import',            :to => 'users#import'
    
      match 'users/export_photos',     :to => 'users#export_photos'
    
    maxwell's avatar
    maxwell a validé
      resources :users,                :except => [:create, :new, :show]
    
    danielvincent's avatar
    danielvincent a validé
      match 'aspects/move_friend',  :to => 'aspects#move_friend', :as => 'move_friend'
    
      match 'aspects/add_to_aspect',:to => 'aspects#add_to_aspect', :as => 'add_to_aspect'
    
      match 'aspects/remove_from_aspect',:to => 'aspects#remove_from_aspect', :as => 'remove_from_aspect'
    
    danielvincent's avatar
    danielvincent a validé
      match 'aspects/manage',       :to => 'aspects#manage'
    
      match 'aspects/public',       :to => 'aspects#public'
    
    danielvincent's avatar
    danielvincent a validé
      resources :aspects,           :except => [:edit]
    
    danielvincent's avatar
    danielvincent a validé
      match 'services/create',    :to   => "services#create"
    
      match 'services/destroy',   :to   => "services#destroy"
    
      match 'services/fb_post',   :to   => "services#fb_post"
    
    danielvincent's avatar
    danielvincent a validé
      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"
      match 'set_profile_photo',  :to   => "dev_utilities#set_profile_photo"
    
      #signup
      match 'get_to_the_choppa', :to => redirect("/users/sign_up")
    
      #public routes
    
      match 'webfinger',            :to => 'publics#webfinger'
      match 'hcard/users/:id',      :to => 'publics#hcard'
    
      match '.well-known/host-meta',:to => 'publics#host_meta'
    
      match 'receive/users/:id',    :to => 'publics#receive'
      match 'hub',                  :to => 'publics#hub'
      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