Add non-api notification routes
This commit is contained in:
parent
0cbd4fdd67
commit
e2337ba8fe
|
|
@ -21,6 +21,7 @@ public class NotificationsController : ControllerBase
|
|||
}
|
||||
|
||||
[HttpGet]
|
||||
[HttpGet("/notifications")]
|
||||
public async Task<ActionResult<List<NotificationDto>>> GetNotifications()
|
||||
{
|
||||
var (userId, userName) = GetUserContext();
|
||||
|
|
@ -60,6 +61,7 @@ public class NotificationsController : ControllerBase
|
|||
}
|
||||
|
||||
[HttpPatch("{id:guid}/read")]
|
||||
[HttpPatch("/notifications/{id:guid}/read")]
|
||||
public async Task<IActionResult> MarkAsRead(Guid id)
|
||||
{
|
||||
var (userId, userName) = GetUserContext();
|
||||
|
|
|
|||
Loading…
Reference in New Issue