mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Use nicer urls, part2 (Fix #921)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user