Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def root(path="index.html"):
return send_from_directory(Path(app.instance_path) / "public", path)
else:
@app.route("/")
def root(path="index.html"):
return redirect("https://github.com/aparcar/asu/#api")
from . import janitor
app.register_blueprint(janitor.bp)
from . import api
app.register_blueprint(api.bp)
return app