-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
36 lines (24 loc) · 773 Bytes
/
main.py
File metadata and controls
36 lines (24 loc) · 773 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
27
28
29
30
31
32
33
34
35
36
import auth
import mainpage
import subscriber
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
application = webapp.WSGIApplication(
[
('/', mainpage.MainPage),
(r'/auth/pickblog', auth.PickBlogHandler),
(r'/auth.*', auth.AuthHandler),
# Subscriber Handlers
(r'/subscriber/items', subscriber.ItemsHandler),
(r'/subscriber/debug', subscriber.DebugHandler),
# Wildcard below so we can test multiple subscribers in a single app.
(r'/subscriber.*', subscriber.InputHandler),
(r'/subscriber/view', subscriber.ViewHandler),
],
debug=True)
def main():
wsgiref.handlers.CGIHandler().run(application)
def main():
run_wsgi_app(application)
if __name__ == '__main__':
main()