Add admin friendships controller and improve friend request handling

Introduces FriendshipsController for admin operations, including listing and removing friendships. Updates routing for admin controllers, improves error handling in UsersController, and enhances FriendsController and related services to include requester details in friendship DTOs. Refactors friend request acceptance to use query parameters and updates console client for improved user feedback and local development configuration.
This commit is contained in:
Artemy
2025-07-06 17:43:10 +07:00
parent 857751f0ad
commit 42348c863f
8 changed files with 134 additions and 16 deletions
@@ -7,7 +7,7 @@ using Microsoft.AspNetCore.Mvc;
namespace Govor.API.Controllers.AdminStuff;
[Route("api/[controller]")]
[Route("api/admin/[controller]")]
[ApiController]
[Authorize(Roles = "Admin")]
public class InviteUserController : Controller