-
-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
支持命名路由 #892
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
能否添加命名路由的支持,第二个参数作为路由的名称,类似这样:
然后再添加个函数route,通过名称获取路径,类似:
Router::route("list_writers")
返回/writers
Router::route("create_writer")
返回/writers
Router::route("show_writer", 1)
返回/writers/1
The text was updated successfully, but these errors were encountered: