-
Notifications
You must be signed in to change notification settings - Fork 0
/
routes.py
44 lines (36 loc) · 1.79 KB
/
routes.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
39
40
41
42
43
44
# -*- coding: utf-8 -*-
import sys
import webapp2
import homepage
import login
from features import feature_handler
from comment import comment_handler
import profile
config = {}
config['webapp2_extras.sessions'] = {
'secret_key': '1aqz@SWX3dec$FRV5gtb^HYN7jum*KI<9lo.):P?',
}
reload(sys)
sys.setdefaultencoding('utf-8')
app = webapp2.WSGIApplication([
# Admin
# Home Page
(r'/', feature_handler.ListFeatures),
# Admin Page
(r'/admin/create-feature', feature_handler.CreateFeature),
(r'/admin/create-feature-bet', feature_handler.CreateFeatureBet),
(r'/show-feature/(\d+)', feature_handler.ShowFeature),
(r'/list-features', feature_handler.ListFeatures),
(r'/update_user_feature_bet', feature_handler.UpdateUserFeatureBet),
(r'/profile', profile.Profile),
(r'/comment-update', comment_handler.CommentUpdate),
# Login Page
(r'/login-page', login.LoginPage),
(r'/logout', login.Logout),
(r'/login', login.Login),
(r'/list-performance', feature_handler.ListFeaturePerformance),
(r'/modify-performance', feature_handler.ModifyFeaturePerformance),
(r'/finish-performance', feature_handler.FinishFeaturePerformance),
# Error Pages
(r'/*', homepage.NotFoundPage),
], debug=True, config=config)