-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
39 lines (35 loc) · 1.01 KB
/
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
39
import webapp2
# imports Models
from models import User
from models import Like
from models import Comment
from models import BlogPost
# imports Handlers
from handlers import Signup
from handlers import Login
from handlers import BlogPage
from handlers import Blogs
from handlers import EditBlog
from handlers import Logout
from handlers import MainPage
from handlers import NewPost
from handlers import Welcome
from handlers import DeleteBlog
from handlers import LikeBlog
from handlers import DeleteComment
from handlers import EditComment
app = webapp2.WSGIApplication([
('/', MainPage),
('/signup', Signup),
('/login', Login),
('/logout', Logout),
('/welcome', Welcome),
('/blog/?', Blogs),
('/blog/newpost', NewPost),
('/blog/([0-9]+)', BlogPage),
('/blog/edit/([0-9]+)', EditBlog),
('/blog/delete/([0-9]+)', DeleteBlog),
('/blog/like/([0-9]+)', LikeBlog),
('/blog/([0-9]+)/edit/([0-9]+)', EditComment),
('/blog/([0-9]+)/delete/([0-9]+)', DeleteComment)
], debug=True)