-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathmain.py
65 lines (62 loc) · 2.14 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import addgamestats
import auth
import leaderboard
import avatar
import config
import games
import stats
import search
import gamedetail
import message
import admin
import createaccount
import updateaccount
import syncerror
import serverinfo
import sendchat
import drain
import sendcommand
import ratingjob
import about
import blockplayer
import resetplayer
import getgames
import playerdetail
import adjustscore
import adminlog
import hideplayer
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
def main():
handlers = [
(config.ADDGAMESTATS_URL, addgamestats.AddGameStats),
(config.AUTH_URL, auth.AuthUser),
(config.LEADERBOARD_URL, leaderboard.Leaderboard),
(config.AVATAR_URL, avatar.AvatarHandler),
(config.STATS_URL, stats.Stats),
(config.GAMES_URL, games.Games),
(config.SEARCH_URL, search.Search),
(config.ABOUT_URL, about.About),
(config.GAMEDETAIL_URL, gamedetail.GameDetail),
(config.MESSAGE_URL, message.Message),
(config.CREATEACCOUNT_URL, createaccount.CreateAccount),
(config.UPDATEACCOUNT_URL, updateaccount.UpdateAccount),
(config.SERVERINFO_URL, serverinfo.ServerInfo),
(config.SYNCERROR_URL, syncerror.SyncError),
(config.ADMIN_URL, admin.Admin),
(config.SENDCHAT_URL, sendchat.SendChat),
(config.DRAIN_URL, drain.Drain),
(config.SENDCOMMAND_URL, sendcommand.SendCommand),
(config.BLOCKPLAYER_URL, blockplayer.BlockPlayer),
(config.HIDEPLAYER_URL, hideplayer.HidePlayer),
(config.RESETPLAYER_URL, resetplayer.ResetPlayer),
(config.RATINGJOB_URL, ratingjob.RatingJob),
(config.GETGAMES_URL, getgames.GetGames),
(config.PLAYERDETAIL_URL, playerdetail.PlayerDetail),
(config.ADJUSTSCORE_URL, adjustscore.AdjustScore),
(config.ADMINLOG_URL, adminlog.AdminLog),
]
application = webapp.WSGIApplication(handlers, debug=config.is_debug())
run_wsgi_app(application)
if __name__ == "__main__":
main()