forked from oby1/oponger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
executable file
·42 lines (36 loc) · 916 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
34
35
36
37
38
39
40
41
import logging
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from lib.page_handlers import MainPage,\
UpdateProfile,\
NewGame,\
NewLeague,\
Rulez,\
Players,\
Games,\
PlayerDetails,\
LeagueDetails,\
Profile,\
JoinGame,\
CancelGame,\
CompleteGame
application = webapp.WSGIApplication(
[('/', MainPage),
('/league/new', NewLeague),
(r'/league/(?P<league_key_name>\w+)', LeagueDetails),
('/profile', Profile),
('/profile/update', UpdateProfile),
('/rulez', Rulez),
('/players', Players),
(r'/player/(?P<player_key_name>\w+)', PlayerDetails),
('/games', Games),
('/game/new', NewGame),
('/game/join', JoinGame),
('/game/cancel', CancelGame),
('/game/complete', CompleteGame)],
debug=True)
def main():
logging.getLogger().setLevel(logging.DEBUG)
run_wsgi_app(application)
if __name__ == "__main__":
main()