-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.py
33 lines (27 loc) · 799 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
28
29
30
31
32
33
#!/usr/bin/env python
import wsgiref.handlers
from google.appengine.dist import use_library
use_library('django', '1.2')
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from app.admins import *
from app.views import *
application = webapp.WSGIApplication([
('/', MainPage),
('/join', JoinGame),
('/kill', Kill),
('/admin/create', CreateGame),
('/admin/start', StartGame),
('/admin/end', EndGame),
('/admin/reset', ResetGame),
('/admin/render', Renderer),
('/admin/genkilllist', GenKillList),
('/admin/updatenumkills', UpdateNumKills),
('/admin/freeattempts', FreeAttempts),
('/killlist', KillList),
('/deathlist', DeathList),
], debug=True)
def main():
run_wsgi_app(application)
if __name__ == '__main__':
main()