wvengen 2019-02-05 20:53:02 +01:00 committed by wvengen
parent 02f1940694
commit e9be38b3e9
12 changed files with 162 additions and 32 deletions

View file

@ -47,8 +47,13 @@ Doorkeeper.configure do
# Define access token scopes for your provider
# For more information go to
# https://github.com/doorkeeper-gem/doorkeeper/wiki/Using-Scopes
# default_scopes :public
# optional_scopes :write, :update
# default is a collection of read-only scopes
default_scopes 'config:user', 'user:read'
optional_scopes 'config:read', 'config:write',
'user:write',
'offline_access'
# Change the way client credentials are retrieved from the request object.
# By default it retrieves first from the `HTTP_AUTHORIZATION` header, then

View file

@ -245,9 +245,12 @@ Foodsoft::Application.routes.draw do
namespace :api do
namespace :v1 do
resource :user, only: [:show]
resource :config, only: [:show]
resource :navigation, only: [:show]
namespace :user do
root to: 'users#show'
end
end
end