From 2cd93c9b3d292c2ad7dcef81b25d9867fd6b5afe Mon Sep 17 00:00:00 2001 From: ItsSiddharth Date: Thu, 17 Oct 2019 01:36:34 +0530 Subject: [PATCH] A basic front end is added so that people can use routes --- .vscode/settings.json | 3 +++ app.py | 6 +++++- templates/index.html | 15 +++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .vscode/settings.json create mode 100644 templates/index.html diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..98c8934 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "python.pythonPath": "/home/siddharth/.virtualenvs/flask/bin/python" +} \ No newline at end of file diff --git a/app.py b/app.py index 54a3a1e..551650b 100644 --- a/app.py +++ b/app.py @@ -1,4 +1,4 @@ -from flask import Flask +from flask import Flask,render_template from flask_cors import CORS from routes.routes import router @@ -9,5 +9,9 @@ app.register_blueprint(router, url_prefix="/math") +@app.route("/") +def index(): + return render_template('index.html') + if __name__ == '__main__': app.run(port=PORT) \ No newline at end of file diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..a889bc7 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,15 @@ + + + + + + + HACKTOBERFEST + + +

Welcome to Hacktober Fest

+ + + + + \ No newline at end of file