summaryrefslogtreecommitdiff
path: root/users/config/routes.rb
blob: 9eff2a1289a0eebdb454d110ed50040e87b33212 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Rails.application.routes.draw do

  namespace "api", { module: "v1",
      path: "/1/",
      defaults: {format: 'json'} } do
    resources :sessions, :only => [:new, :create, :update]
    delete "logout" => "sessions#destroy", :as => "logout"
    resources :users, :only => [:create, :update, :destroy]
  end

  get "login" => "sessions#new", :as => "login"
  delete "logout" => "sessions#destroy", :as => "logout"
  resources :sessions, :only => [:new, :create, :update]

  get "signup" => "users#new", :as => "signup"
  resources :users do
    resource :overview, :only => [:show]
    resource :email_settings, :only => [:edit, :update]
    resources :email_aliases, :only => [:destroy], :id => /.*/
  end

  get "/.well-known/host-meta" => 'webfinger#host_meta'
  get "/webfinger" => 'webfinger#search'
end