代码之家  ›  专栏  ›  技术社区  ›  noobie-php

烧瓶拖尾/导致内部服务器错误

  •  0
  • noobie-php  · 技术社区  · 5 年前

    嗨,在我下面的代码中,我正在输出我的路径,

    Map([<Rule '/last_resp' (OPTIONS, HEAD, GET) -> PaitnetCentricAppService:last_resp>
     <Rule '/static/<filename>' (OPTIONS, HEAD, GET) -> static>])
    

    正如你所见,我的规则规定我应该使用 /last_resp 但当我运行我的应用程序时 /last_resp/ 基于此,我认为我得到了内部发球错误。

    from flask import Flask
    from src.app.services.PaitnetCentricAppService import PaitnetCentricAppService
    
    
    app = Flask(__name__)
    PaitnetCentricAppService.register(app,route_base='/')
    print(app.url_map)
    if __name__ == '__main__':
        app.run()
    
    0 回复  |  直到 5 年前