forked from kushal/snippets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.py
33 lines (28 loc) · 819 Bytes
/
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
import webapp2
from handlers import site
from handlers import emails
"""
__
_______ ____ __ ___/ |_ ____ ______
\_ __ \/ _ \| | \ __\/ __ \ / ___/
| | \( <_> ) | /| | \ ___/ \___ \
|__| \____/|____/ |__| \___ >____ >
\/ \/
"""
API = []
SITE = [
('/', site.MainHandler),
('/user/(.*)', site.UserHandler),
('/tag/(.*)', site.TagHandler),
('/follow', site.FollowHandler),
('/unfollow', site.UnfollowHandler),
('/reminderemail', emails.ReminderEmail),
('/digestemail', emails.DigestEmail),
('/onereminder', emails.OneReminderEmail),
('/onedigest', emails.OneDigestEmail),
]
ADMIN = []
ROUTES = []
ROUTES.extend(SITE)
ROUTES.extend(ADMIN)
ROUTES.append(webapp2.Route(r'/.*$', site.NotFoundHandler))