-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
26 lines (24 loc) · 737 Bytes
/
app.py
File metadata and controls
26 lines (24 loc) · 737 Bytes
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
# Importing webapp package
import webapp2
# Importing handlers
from handlers.mainpage import mainpage
from handlers.login import login
from handlers.logout import logout
from handlers.signup import signup
from handlers.submit import submit
from handlers.welcome import welcome
from handlers.user import user
from handlers.post import post
from handlers.like import like
from handlers.comment import comment
# Routing to right handler
app = webapp2.WSGIApplication([ ('/', mainpage),
('/login', login),
('/logout', logout),
('/signup', signup),
('/submit', submit),
('/welcome', welcome),
('/user', user),
('/post', post),
('/like', like),
('/comment', comment)])