You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
520 B

8 years ago
8 years ago
  1. Rails.application.routes.draw do
  2. get '.well-known/host-meta', to: 'xrd#host_meta', as: :host_meta
  3. get '.well-known/webfinger', to: 'xrd#webfinger', as: :webfinger
  4. resources :accounts, path: 'users', only: [:show], param: :username do
  5. resources :stream_entries, path: 'updates', only: [:show]
  6. end
  7. namespace :api do
  8. resources :subscriptions, only: [:show]
  9. post '/subscriptions/:id', to: 'subscriptions#update'
  10. post '/salmon/:id', to: 'salmon#update', as: :salmon
  11. end
  12. root 'home#index'
  13. end