def main():
app = webapp2.WSGIApplication(
[
('/obstaravanie', ServeObstaravanie),
('/obstaravanieFirma', ServeCompany),
('/notifications', ServeNotifications),
('/updateNotifications', UpdateNotifications),
], debug=False)
parser = argparse.ArgumentParser()
parser.add_argument('--listen',
help='host:port to listen on',
default='127.0.0.1:8082')
args = parser.parse_args()
host, port = args.listen.split(':')
httpserver.serve(
app,
host=host,
port=port)
评论列表
文章目录