Sha256: 5414003ad47d449725d4f4e92b8cc21e4ebbabfcf68f5f761167a880a5624071
Contents?: true
Size: 604 Bytes
Versions: 5
Compression:
Stored size: 604 Bytes
Contents
People::Engine.routes.draw do root to: "users#index" scope 'api' do scope '1' do resources :users, controller: 'api/v1/users' do collection do # /api/1/users/register post 'register', to: "api/v1/users#register" # /api/1/users/login post 'login', to: "api/v1/users#login" # /api/1/users/logout post 'logout', to: "api/v1/users#logout" # /api/1/users/logout post 'authenticate/:id', to: "api/v1/users#authenticate" # /api/1/users/login_status get 'login_status', to: "api/v1/users#login_status" end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems