-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
27 lines (25 loc) · 877 Bytes
/
urls.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
import webapp2
import unit1
import unit2
import unit3
import unit4
import unit5
###############################################################################
# url handlers
###############################################################################
app = webapp2.WSGIApplication([
('/', unit1.MainPage),
('/thanks', unit1.ThanksHandler),
('/rot13', unit2.Rot13Handler),
('/blog/signup', unit2.SignupHandler),
('/blog/login', unit2.LoginHandler),
('/blog/logout', unit2.LogoutHandler),
('/blog/welcome', unit2.SignupSuccessHandler),
('/unit3', unit3.AsciiChanHandler),
('/blog/?(?:.json)?', unit3.BlogHandler),
('/blog/([0-9]+)(?:.json)?', unit3.PostHandler),
('/blog/newpost', unit3.NewPostHandler),
('/unit4', unit4.CookieHandler),
('/unit5', unit5.APIHandler),
('/blog/flush', unit5.FlushCache),
], debug=True)