Sha256: f3e6b887b72bb7790b2fe832e4548df73c7c68bfc85fb78ea8bb8f371178ba70

Contents?: true

Size: 1.66 KB

Versions: 15

Compression:

Stored size: 1.66 KB

Contents

Rails.application.routes.draw do
  #Background tasks
  mount Resque::Server, :at => "/resque"
  
  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/public' => 'api#activity_atom_feed', :format => 'atom'
  ##/API##
  
  # Webfinger
  match '.well-known/host-meta',:to => 'frontpage#host_meta'
  
  # Social Stream subjects configured in config/initializers/social_stream.rb
  SocialStream.subjects.each do |actor|
    resources actor.to_s.pluralize do
      resource :like
      resource :profile
      resources :activities
    end
  end

  resources :contacts

  namespace "relation" do
    resources :customs
  end
  resources :permissions

  match 'tags'     => 'tags#index', :as => 'tags'
  
  # Find subjects by slug
  match 'subjects/lrdd/:id' => 'subjects#lrdd', :as => 'subject_lrdd'
  
  resource :representation
  
  resources :settings do
    collection do
      put 'update_all'
    end
  end

  resources :messages

  resources :conversations

  resources :invitations
  
  resources :notifications do
    collection do
      put 'update_all'
    end
  end

  resources :comments

  resources :activities do
    resource :like
  end
  
  
  # Social Stream objects configured in config/initializers/social_stream.rb
  (SocialStream.objects - [ :actor ]).each do |object|
    resources object.to_s.pluralize
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
social_stream-base-0.7.11 config/routes.rb
social_stream-base-0.7.10 config/routes.rb
social_stream-base-0.7.9 config/routes.rb
social_stream-base-0.7.8 config/routes.rb
social_stream-base-0.7.7 config/routes.rb
social_stream-base-0.7.6 config/routes.rb
social_stream-base-0.7.5 config/routes.rb
social_stream-base-0.7.4 config/routes.rb
social_stream-base-0.7.3 config/routes.rb
social_stream-base-0.7.2 config/routes.rb
social_stream-base-0.7.1 config/routes.rb
social_stream-base-0.7.0 config/routes.rb
social_stream-base-0.6.8 config/routes.rb
social_stream-base-0.6.6 config/routes.rb
social_stream-base-0.6.5 config/routes.rb