def register(apps): from piko import App app = App('piko.oauth', template_folder=template_path) app.debug = True register_routes(app) apps['/oauth'] = app return apps
def register(apps): app = App('piko.busby', template_folder = template_path) app.debug = True register_routes(app) apps['/busby'] = app return apps
def register(apps): """ Register the application """ app = App('piko.pki', template_folder=TEMPLATE_PATH) app.debug = True register_routes(app) apps['/pki'] = app return apps
def register(apps): """ Register CAS as a Flask application. :param apps: A list of :py:class:`piko.App` applications. :type apps: list :returns: A list of :py:class:`piko.App` applications with this application included. """ app = App('piko.cas', template_folder=template_path) app.debug = True register_routes(app) apps['/cas'] = app api_app = App('piko.cas') api_app.debug = True register_api_routes(api_app) apps['/api/v1/cas'] = api_app return apps
def register(apps): """ Register candlepin as a Flask application. """ app = App('piko.candlepin', template_folder=template_path) register_routes(app) apps['/candlepin'] = app api_app = App('piko.candlepin') api_app.debug = True register_api_routes(api_app) apps['/api/v1/candlepin'] = api_app return apps