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

时间:2021-05-07 20:25:03

标签: python-3.x flask

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

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 个答案:

没有答案