Commit 145f0879 authored by Robin Obůrka's avatar Robin Obůrka

Add blueprint "pages" for static viewable content

parent e186254e
......@@ -23,7 +23,9 @@ def create_app(additional_config=None):
setup_logging()
from .pages import pages
from .apiv1 import apiv1
app.register_blueprint(pages)
app.register_blueprint(apiv1, url_prefix="/v1")
return app
from flask import Blueprint
pages = Blueprint("pages", __name__)
@pages.route("/")
def home():
return "Turris:Sentinel"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment