foodsoft/app/controllers/api/v1/configs_controller.rb
2021-03-02 09:12:19 +01:00

7 lines
249 B
Ruby

class Api::V1::ConfigsController < Api::V1::BaseController
before_action -> { doorkeeper_authorize! 'config:user', 'config:read', 'config:write' }
def show
render json: FoodsoftConfig, serializer: ConfigSerializer, root: 'config'
end
end