Sha256: 0df1e668b2a1718361a1ced44df18791b6c84c757f3b6af29e34babd94251cf5

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

Rails.application.routes.draw do
  get "contacts/index"
  root :to => "frontpage#index"
  
  match 'home' => 'home#index', :as => :home
  match 'home' => 'home#index', :as => :user_root # devise after_sign_in_path_for
  
  ##API###
  match 'api/keygen' => 'api#create_key', :as => :api_keygen
  match 'api/user/:id' => 'api#users'
  match 'api/me' => 'api#users'
  match 'api/me/home/' => 'api#activity_atom_feed', :format => 'atom', :as => :api_my_home
  match 'api/user/:id/home' => 'api#activity_atom_feed', :format => 'atom'
  ##/API##
  
  SocialStream.subjects.each do |actor|
    resources actor.to_s.pluralize do
      resource :profile
    end
  end
  
  resource :representation
  
  resources :logos
    
  namespace :mailbox do 
    resources :conversation, :controller => :conversation 
  end
  resources :mailbox, :controller => :mailbox 
  
  resources :ties do
    collection do
      get 'suggestion'
    end
  end
  
  resources :activities do
    resource :like
  end
  
  
  (SocialStream.objects - [ :actor ]).each do |object|
    resources object.to_s.pluralize
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
social_stream-0.4.0 config/routes.rb