You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
We've had a few requests for the ability to write code like this:
[Route("api/{controller}/{action}/id?}")]
class BaseController : Controller
{
...
}
class BlogController : BaseController
{
...
}
Ultimately what the user wants here is for the {controller} token to be replaced with the controller name and the {action} token to be replaced with the action name(s).
We should consider whether or not this is truly a parameter (with parameter syntax) or is just token replacement (with different syntax).
Includes discussion about what the exact meaning of [Route("api/{controller}/{action}/id?}")] is. Is this token replacement? If we support token replacement, are these specific parameters still supported.
The text was updated successfully, but these errors were encountered:
We've had a few requests for the ability to write code like this:
Ultimately what the user wants here is for the
{controller}
token to be replaced with the controller name and the{action}
token to be replaced with the action name(s).We should consider whether or not this is truly a parameter (with parameter syntax) or is just token replacement (with different syntax).
Includes discussion about what the exact meaning of
[Route("api/{controller}/{action}/id?}")]
is. Is this token replacement? If we support token replacement, are these specific parameters still supported.The text was updated successfully, but these errors were encountered: