-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
38 lines (30 loc) · 982 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
# imports
import webapp2
import settings
import sys
sys.path.append('libs')
# routes
routes = [
# welcome page
('/', 'handlers.index.Index'),
('/login', 'handlers.index.Login'),
('/logout', 'handlers.index.Logout'),
# counselor - profile, avatar, etc
('/counselor/update', 'handlers.counselor.Update'),
('/counselor/edit', 'handlers.counselor.Edit'),
('/counselor/avatar', 'handlers.counselor.Avatar'),
# support - main support chat page
('/support', 'handlers.support.Index'),
# route - route incoming chat requests to available counselors
('/route/create', 'handlers.route.Queue'),
('/route/queue', 'handlers.route.Queue'),
('/route/remove', 'handlers.route.Remove'),
('/route/assign', 'handlers.route.Assign'),
('/route/transfer', 'handlers.route.Transfer'),
]
# run the app
app = webapp2.WSGIApplication(
routes = routes,
debug = settings.DEBUG,
config = settings.config,
)