Config handler

Configs Handler

Module realizes configs handler.

class luna_configurator.crutches_on_wheels.web.configs_handler.ConfigsHandler(request)[source]

Handler for getting actual service configuration

property app: LunaApplication

Get application :returns: running application

Return type:

LunaApplication

property config

Get running application config :returns: running application config

async get()[source]

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_configurator.crutches_on_wheels.web.configs_handler.addConfigHandlerRoutes(app)[source]

Add standard configs handler to app :param app: application

Return type:

None