forked from aiman-rizvi/WEHack2020
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.py
33 lines (23 loc) · 838 Bytes
/
app.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
from flask import Flask, render_template
app = Flask(__name__, static_url_path='/static')
# Routes
@app.route('/')
def landing():
return render_template('landing.html', title="landing")
@app.route('/user_home', methods=['GET'])
def user_home():
return render_template('network.html', title="User - Home")
@app.route('/resources', methods=['GET'])
def resources():
return render_template('resources.html', title="Connect!")
@app.route('/user_profile', methods=['GET'])
def user_profile():
return render_template('user.html', title="user_profile")
@app.route('/mentor_example', methods=['GET'])
def mentor_example():
return render_template('mentor.html', title="Connect!")
@app.route('/logout')
def logout():
return render_template('landing.html', title="landing")
if __name__ == '__main__':
app.run()