-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.py
33 lines (23 loc) · 888 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, redirect, url_for
from app import create_app
from app.routes.doctors import doctor_routes
from app.routes.patients import patient_routes
from app.routes.receptionist import receptionist_routes
app = create_app()
@app.route('/')
def main_menu():
return render_template('main_menu.html') # might add a UI later
@app.route('/receptionist_portal')
def receptionist_portal():
return redirect(url_for('receptionist_routes.receptionist_dashboard'))
@app.route('/doctor_portal')
def doctor_portal():
return redirect(url_for('doctor_routes.doctor_dashboard'))
@app.route('/patient_portal')
def patient_portal():
return redirect(url_for('patient_routes.patient_dashboard'))
@app.route('/exit')
def exit_app():
return "Exiting the portal... Thank you for using the system!"
if __name__ == "__main__":
app.run(debug=True)