add: use home template

This commit is contained in:
starnakin 2023-06-04 03:32:42 +02:00
parent 9aae995456
commit 8454e2a9fb
2 changed files with 6 additions and 4 deletions

6
home.py Normal file
View File

@ -0,0 +1,6 @@
import main
import flask
@main.app.route("/home", methods = ['GET'])
def home():
return (flask.render_template("home/index.html"))

View File

@ -3,10 +3,6 @@ import database
app = flask.Flask(__name__) app = flask.Flask(__name__)
@app.route("/")
def home():
return "<p>Hello, World!</p>"
if (__name__ == "__main__"): if (__name__ == "__main__"):
app.run() app.run()