def config(): controller = ConfigController(current_app.config) return Response(render_template('config.js', data=controller.get()), mimetype='application/javascript')
def config_password(): return ConfigController().password()
def get_password(username): return ConfigController().check_password(username)
def config_subscription(id): return ConfigController().subscription(id)
def config_notification(id): return ConfigController().notification(id)
def config_sensor(id): return ConfigController().sensor(id)
def config_location(id): return ConfigController().location(id)
def config_config(): return ConfigController().complete_config()