Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

route attribute controller with parameter asp.net core

[Route("/api/v1/{foo}")]
public class MyController : Controller
{
	public async Task<IActionResult> MyEndpoint(int foo) { }
}
 
PREVIOUS NEXT
Tagged: #route #attribute #controller #parameter #core
ADD COMMENT
Topic
Name
6+3 =