tango Group 与 Static 配合使用的问题 #34
Labels
No Label
bug
doc
duplicate
enhancement
help wanted
invalid
question
testing
wait_for_investigate
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: lunny/tango#34
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Author: @qjebbs
假设有以下代码
运行后,无论访问
http://localhost/
还是http://localhost/admin/
都是404。这个似乎不符合直觉。从这个代码来说,把
tango.Static
的Prefix
设成/admin
似乎也达成目的。但我这么做的初衷是希望给http://localhost/admin/
做中间件,特别地控制它的权限。Author: @lunny
目前确实不支持,全局中间件是无论如何都会执行的,但是Group中间件和Action中间件只有路由请求才会执行。