Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想做一种“主要路线”,所以我在每一页上都有。我想在重定向到特定路由之前添加一些带有 url 的操作。
我应该使用什么 url 掩码来捕获所有 url?
@http.route(['/any_url_here'])
谢谢
尝试
@http.route([ '/', '/<path:path>', ], type='http', auth="public", website=True) def anything(self, **post): ...