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

@@ -13,7 +13,7 @@ namespace BTCPayServer.Controllers
{
public partial class UIManageController
{
[HttpGet("notifications")]
[HttpGet("/notifications/settings")]
public async Task<IActionResult> NotificationSettings([FromServices] IEnumerable<INotificationHandler> notificationHandlers)
{
var user = await _userManager.GetUserAsync(User);
@@ -32,7 +32,7 @@ namespace BTCPayServer.Controllers
return View(new NotificationSettingsViewModel() { DisabledNotifications = notifications });
}
[HttpPost("notifications")]
[HttpPost("/notifications/settings")]
public async Task<IActionResult> NotificationSettings(NotificationSettingsViewModel vm, string command)
{
var user = await _userManager.GetUserAsync(User);