What is the appropriate usage of SCRIPT_NAME in gunicorn + flask?

前端 未结 0 1128
独厮守ぢ
独厮守ぢ 2020-12-01 12:47

I want to add url prefix to every route in my flask application.

PREFIX = "/api"

@app.route(PREFIX + "/")
def index():
  return "Hel         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题