namespace xyz.Controllers
{
[ApiController]
[Route("api/[controller]")]
public class LoginController : ControllerBase
{
[HttpPost(Name = "functionName")]
public someData functionName()
{
// I would want this to have the route "api/Login/functionName", how do I add the "functionName" to it?
}
}
}
namespace xyz.Controllers
{
[ApiController]
[Route("api/[controller]")]
public class LoginController : ControllerBase
{
[HttpPost(Name = "functionName")]
public someData functionName()
{
// I would want this to have the route "api/Login/functionName", how do I add the "functionName" to it?
}
}
}