如何简约的指定请求的接口。以及判断int的值等于某个值再去写判断下的code
/api/web/novel/typepage/<<int:page>>
/api/web/novel/<<int:nameid>>/volume/<<int:volumeid>>
@app.before_request
def before():
url = request.path
pass_list = ['/api/web/novel/typepage/1','/api/web/novel/typepage/2','/api/web/novel/typepage/3']
if url in pass_list or url.endswith('.js') or url.endswith('.jpg'):
print("+++++")
else:
pass