forked from kylejava/DevJam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
36 lines (21 loc) · 763 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
from flask import Flask, render_template, flash, request, redirect, url_for, session
import json
import requests
app = Flask(__name__)
@app.route('/' , methods = ['GET' , 'POST'])
def index():
return render_template('index.html')
@app.route('/user_login' , methods = ['GET' , 'POST'])
def user_index():
return render_template('login.html')
@app.route('/user_sign_up' , methods = ['GET' , 'POST'])
def user_sign_up():
return render_template('createAccount.html')
@app.route('/user_table' , methods = ['GET' , 'POST'])
def user_table():
return render_template('user_table.html')
@app.route('/about' , methods = ['GET' , 'POST'])
def about():
return render_template('about.html')
if __name__ == "__main__":
app.run(debug=True)