API v1 financial_transactions endpoints (#627)
This commit is contained in:
parent
8c8b42c2b2
commit
b96ce06d94
10 changed files with 397 additions and 1 deletions
|
|
@ -49,9 +49,10 @@ Doorkeeper.configure do
|
|||
# https://github.com/doorkeeper-gem/doorkeeper/wiki/Using-Scopes
|
||||
|
||||
# default is a collection of read-only scopes
|
||||
default_scopes 'config:user', 'user:read'
|
||||
default_scopes 'config:user', 'finance:user', 'user:read'
|
||||
|
||||
optional_scopes 'config:read', 'config:write',
|
||||
'finance:read', 'finance:write',
|
||||
'user:write',
|
||||
'offline_access'
|
||||
|
||||
|
|
|
|||
|
|
@ -254,7 +254,10 @@ Foodsoft::Application.routes.draw do
|
|||
|
||||
namespace :user do
|
||||
root to: 'users#show'
|
||||
resources :financial_transactions, only: [:index, :show]
|
||||
end
|
||||
|
||||
resources :financial_transactions, only: [:index, :show]
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue