-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
23 lines (17 loc) · 672 Bytes
/
Copy pathapp.py
File metadata and controls
23 lines (17 loc) · 672 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from flask import Flask
from flask import render_template
app = Flask(__name__)
@app.route("/error")
def error():
return render_template('pageNotFound.html')
@app.route("/hospital/<string:hospitalid>")
def viewAccidents(hospitalid):
return render_template('viewAccidents.html',hospitalid=hospitalid)
@app.route("/hospital/<string:hospitalid>/<string:userid>")
def viewUserAccidentInfo(hospitalid, userid):
return render_template('viewAccidentHosp.html', passval = {"hospitalId" : hospitalid, "userId" : userid})
@app.route("/emc/<string:userid>")
def emC(userid):
return render_template('index.html',userid=userid)
if __name__ == '__main__':
app.run(debug=True)