mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-17 05:47:58 +08:00
* add scripts from cli * add warning when including scripts * flake8 fixes * confirm scripts injection
18 lines
503 B
Python
18 lines
503 B
Python
import os
|
|
from flask import Blueprint, render_template, send_from_directory, current_app
|
|
|
|
|
|
bp = Blueprint("webapp", __name__, template_folder="templates")
|
|
|
|
|
|
@bp.route("/")
|
|
def index():
|
|
dataset_title = current_app.config["DATASET_TITLE"]
|
|
scripts = current_app.config["SCRIPTS"]
|
|
return render_template("index.html", datasetTitle=dataset_title, SCRIPTS=scripts)
|
|
|
|
|
|
@bp.route("/favicon.png")
|
|
def favicon():
|
|
return send_from_directory(os.path.join(bp.root_path, "static/img/"), "favicon.png")
|