foodsoft/app/controllers/api/v1/configs_controller.rb

8 lines
249 B
Ruby
Raw Permalink Normal View History

2018-10-13 15:18:55 +02:00
class Api::V1::ConfigsController < Api::V1::BaseController
before_action -> { doorkeeper_authorize! 'config:user', 'config:read', 'config:write' }
2018-10-13 15:18:55 +02:00
def show
render json: FoodsoftConfig, serializer: ConfigSerializer, root: 'config'
end
end