This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/config_app/config_endpoints/setup_web.py

19 lines
588 B
Python
Raw Normal View History

2018-05-14 17:12:42 +00:00
from flask import Blueprint
from common import render_page_template
from config_app.config_endpoints.common import generate_route_data
from util.cache import no_cache
setup_web = Blueprint('setup_web', __name__, template_folder='templates')
def render_page_template_with_routedata(name, *args, **kwargs):
return render_page_template(name, generate_route_data(), *args, **kwargs)
@setup_web.route('/', methods=['GET'], defaults={'path': ''})
@no_cache
def index(path, **kwargs):
return render_page_template_with_routedata('index.html', js_bundle_name='configapp', **kwargs)