-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
20 lines (18 loc) · 761 Bytes
/
main.py
File metadata and controls
20 lines (18 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import webapp2
import handlers
# Mapping urls to the specific handlers
app = webapp2.WSGIApplication([
('/', handlers.IndexPage),
('/signup', handlers.SignupPage),
('/login', handlers.LoginPage),
('/welcome', handlers.WelcomePage),
('/logout', handlers.LogoutPage),
('/newpost', handlers.NewPostPage),
('/post/([0-9]+)', handlers.PostPage),
('/post/([0-9]+)/edit', handlers.EditPostHandler),
('/post/([0-9]+)/delete', handlers.DeletePostHandler),
('/post/([0-9]+)/like', handlers.LikesHandler),
('/post/([0-9]+)/comment', handlers.comment.NewCommentHandler),
('/comment/([0-9]+)/edit', handlers.comment.EditCommentHandler),
('/comment/([0-9]+)/delete', handlers.comment.DeleteCommentHandler)
], debug=True)