嗨,在我下面的代码中,我正在输出我的路径,
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()