fixed errors of routes
This commit is contained in:
@@ -15,7 +15,7 @@ public class AcceptFriendRequestEndpoint(UserService userService, UserFriendsRep
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Put("/Friends/{@FriendId}/Request/");
|
||||
Put("/Friends/{@FriendId}/Request/", x => new { x.FriendId });
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(AcceptFriendRequest req, CancellationToken ct)
|
||||
|
||||
@@ -15,7 +15,7 @@ public class DeleteFriendEndpoint(UserFriendsRepository userFriendsRepository, U
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Delete("/Friends/");
|
||||
Delete("/Friends/{@FriendId}", x => new { x.FriendId });
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(DeleteFriendRequest req, CancellationToken ct)
|
||||
|
||||
@@ -15,7 +15,7 @@ public class RejectFriendRequestEndpoint(UserService userService, UserFriendsRep
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Delete("/Friends/{@FriendId}/Request/");
|
||||
Delete("/Friends/{@FriendId}/Request/", x => new { x.FriendId });
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(RejectFriendRequest req, CancellationToken ct)
|
||||
|
||||
@@ -15,7 +15,7 @@ public class SendFriendRequestEndpoint(UserFriendsRepository userFriendsReposito
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Post("/Friends/{@Id}/", x => new { x.FriendId });
|
||||
Post("/Friends/{@FriendId}/", x => new { x.FriendId });
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(SendFriendRequest req, CancellationToken ct)
|
||||
|
||||
Reference in New Issue
Block a user