serving.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:verejne.digital 作者: verejnedigital 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号