forked from MichaelViljoen/TradeSim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
41 lines (30 loc) · 925 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from flask import Flask, redirect, render_template, url_for, request
from flask_bootstrap import Bootstrap
app = Flask(__name__, template_folder='apps/client/templates', static_folder='apps/client/static')
Bootstrap(app)
@app.route("/")
def index():
return redirect(url_for('login'))
@app.route("/login")
def login():
return render_template("login.html")
@app.route("/register", methods=['POST' , 'GET'])
def register():
return render_template("signup.html")
@app.route("/home")
def home():
return render_template("home.html")
@app.route("/addETF")
def add():
return render_template("addETF.html")
@app.route("/compare-date")
def comparedate():
return render_template("compare-date.html")
@app.route("/setRule")
def setRule():
return render_template("set.html")
@app.route("/edit")
def edit():
return render_template("edit.html")
if __name__ == "__main__":
app.run(debug=True)