Use nicer urls, part2 (Fix #921)

This commit is contained in:
nicolas.dorier
2022-01-14 20:16:28 +09:00
parent 1fb582c35d
commit b9fdd54538
11 changed files with 54 additions and 21 deletions

View File

@@ -20,7 +20,7 @@ namespace BTCPayServer.Controllers
{
[BitpayAPIConstraint(false)]
[Authorize(AuthenticationSchemes = AuthenticationSchemes.Cookie, Policy = Policies.CanViewNotificationsForUser)]
[Route("[controller]/[action]")]
[Route("notifications/{action:lowercase=Index}")]
public class UINotificationsController : Controller
{
private readonly BTCPayServerEnvironment _env;