Is it possible to override Litiums routing for a specific controller and action in Litium 8 so that it can be accessed in a standard MVC way? Like http://www.test.com/*controller*/*action*
Litium version: 8.10
Is it possible to override Litiums routing for a specific controller and action in Litium 8 so that it can be accessed in a standard MVC way? Like http://www.test.com/*controller*/*action*
Litium version: 8.10
Yes, register it as a controller in MVC (route attribute) way and it should work.
Putting the route attribute on the controller worked perfectly. Thanks @patric.forsgard
using Microsoft.AspNetCore.Mvc;
namespace Litium.Accelerator.Mvc.Controllers
{
[Route("[controller]/[action]")]
public class TestController : Controller
{
public IActionResult Index()
{
return View();
}
}
}
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.