mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-24 14:51:05 +01:00
- extensions are now blueprints: keep views, templastes and statics in the same folder - increase app security using `flask-talisman` - whenever possible use {{ url_for }} for links between pages - remove references to non-existing JavaScript code - add missing favicon.ico
14 lines
321 B
Python
14 lines
321 B
Python
from flask import render_template, send_from_directory
|
|
from os import path
|
|
|
|
from lnbits.core import core_app
|
|
|
|
|
|
@core_app.route("/favicon.ico")
|
|
def favicon():
|
|
return send_from_directory(path.join(core_app.root_path, "static"), "favicon.ico")
|
|
|
|
|
|
@core_app.route("/")
|
|
def home():
|
|
return render_template("index.html")
|