mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-17 05:47:58 +08:00
* dead code and route removal * more dead code cleanup * fix scanpy_engine tests * lint * add missing catch in filter parsing * update scanpy NaN tests * more fbs tests and dead test removal * remove forced default for content type negotiation * bit of cleanup * more fbs test cleanup * lint * remove swagger * swagger cleanup * lint * correctly handle lack of templates * more dead code removal * remove unused files * fix dev build * lint
17 lines
442 B
Python
17 lines
442 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"]
|
|
return render_template("index.html", datasetTitle=dataset_title)
|
|
|
|
|
|
@bp.route("/favicon.png")
|
|
def favicon():
|
|
return send_from_directory(os.path.join(bp.root_path, "static/img/"), "favicon.png")
|