slinky/main.py
2021-12-20 15:09:30 +00:00

24 lines
402 B
Python

"""
Main Flask-based app for Slinky
"""
from flask import Flask, render_template
from flask_bootstrap import Bootstrap
from slinky.web import slinky_webapp
app = Flask(__name__)
app.register_blueprint(slinky_webapp)
Bootstrap(app)
@app.route('/')
def index() -> str:
"""
Index/Landing page
Returns:
str: string of page content
"""
return render_template('index.html')