-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
27 lines (25 loc) · 886 Bytes
/
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
'''
Created on May 15, 2016
@author: jay
'''
import webapp2
from controllers.MainHandler import MainHandler
from controllers.LoginHandler import LoginHandler
from controllers.LogoutHandler import LogoutHandler
from controllers.NewPostHandler import NewPostHandler
from controllers.PostHandler import PostHandler
from controllers.SignupHandler import SignupHandler
from controllers.SuccessHandler import SuccessHandler
from controllers.ASCIIChanHandler import ASCIIChanHandler
from controllers.FlushHandler import FlushHandler
app = webapp2.WSGIApplication([
('/(?:.json)?', MainHandler),
('/login', LoginHandler),
('/logout', LogoutHandler),
('/newpost', NewPostHandler),
('/blog/([0-9]+)(?:.json)?', PostHandler),
('/signup', SignupHandler),
('/welcome', SuccessHandler),
('/asciichan', ASCIIChanHandler),
('/flush', FlushHandler)
], debug=True)