私はBottlePyに次のフックを持っています:
@bottle_app.hook('before_request')
def update_session():
# do stuff
return
そしていくつかのルート:
@bottle_app.route('/')
def index():
return render('index')
@bottle_app.route('/example')
def example():
return render('example')
内からupdate_session()
、どのルートが呼び出されているかをどのように判断できますか?
私はドキュメントを調べても無駄になりましたが、確かにこれは可能ですか?