Config handler

Configs Handler

Module realizes configs handler.

class luna_events.crutches_on_wheels.web.configs_handler.ConfigsHandler(request)

Handler for getting actual service configuration

property app: LunaApplication

Get application :rtype: LunaApplication :returns: running application

property config

Get running application config :returns: running application config

async get()

Get service configuration, see get_config.

Resource is reached by address ‘/config’

Raises:

VLException(Error.UnsupportedMediaType, 415, isCriticalError=False), if "Accept" header is incorrect

Return type:

HTTPResponse

luna_events.crutches_on_wheels.web.configs_handler.addConfigHandlerRoutes(app)

Add standard configs handler to app :type app: LunaApplication :param app: application

Return type:

None