Sha256: 8ae42a0abcbd5bb724264e655d3a96a1dca175e03f8dc5f7ae07fb4d533cae5e

Contents?: true

Size: 571 Bytes

Versions: 1

Compression:

Stored size: 571 Bytes

Contents

Rails.application.routes.draw do
  resource :profile
  resources :messages
  resources :subscriptions
  resources :topics, path: 'topic' do
    member do
      post :subscribe
      delete :subscribe, to: 'topics#unsubscribe'
    end
  end
  devise_for :users
  root 'messages#index'
  get ':username', to: 'profiles#show'
  get ':username/follows', to: 'follows#index', as: 'follows'
  get ':username/followed', to: 'follows#followed', as: 'followed'
  post   ':username/follow', to: 'follows#create', as: 'follow'
  delete ':username/follow', to: 'follows#destroy'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
Xwitter-0.4.0 config/routes.rb