application = tornado.web.Application([
(r"/", WixLogServiceIndexHTTPHandler, {'getInfoFromMongoDB':getInfoFromMongoDB}),
(r"/static/(.*)", tornado.web.StaticFileHandler, {"path": "/opt/wix-log-service"}),
(r"/api/wix-log", WixLogAnalyticsServerHTTP_handler, {'getInfoFromMongoDB':getInfoFromMongoDB, 'messageMapper':messageMapper}),
(r"/api/getMissingFiles", WixLogGetMissingFilesHTTP_handler, {'getInfoFromMongoDB':getInfoFromMongoDB}),
(r"/api/getMsgsByType", WixLogGetMessagesByTypeHTTP_handler, {'getInfoFromMongoDB':getInfoFromMongoDB}),
(r"/wix-log", WixLogServiceIndexHTTPHandler, {'getInfoFromMongoDB':getInfoFromMongoDB}),
(r"/api/isAlive", WixLogServiceServerAliveHTTPHandler ),
(r"/api/access-log", WixLogAccessLogHTTP_handler, {'getInfoFromMongoDB':getInfoFromMongoDB}),
(r"/api/disp-access-log", WixLogDispatcherAccessLogHTTP_handler, {'getInfoFromMongoDB':getInfoFromMongoDB}),
])