diff --git a/.vscode/settings.json b/.vscode/settings.json index c8d8f59..2768fd6 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,4 @@ { - "python.pythonPath": "${workspaceFolder}/venv/bin/python" + "python.pythonPath": "${workspaceFolder}/venv/bin/python", + "html.format.wrapLineLength": 0, } \ No newline at end of file diff --git a/canon_law/__init__.py b/canon_law/__init__.py index c582d0a..3f227d2 100644 --- a/canon_law/__init__.py +++ b/canon_law/__init__.py @@ -19,7 +19,7 @@ import os import flask -from . import central +from canon_law import central def create_app(self): diff --git a/canon_law/api.py b/canon_law/api.py index 01058a4..15c73b6 100644 --- a/canon_law/api.py +++ b/canon_law/api.py @@ -19,11 +19,16 @@ import flask import tinydb -from . import central +from canon_law import central bp = flask.Blueprint("api", __name__, url_prefix="/api") +@bp.route("/") +def index(): + return flask.render_template("api.html") + + @bp.route("/council/") @bp.route("/council//") @bp.route("/council//