AuthController work

This commit is contained in:
Artemy
2025-06-18 16:55:19 +07:00
parent 2c2c2b805c
commit 7d518c0882
26 changed files with 397 additions and 63 deletions
+3 -1
View File
@@ -1,4 +1,5 @@
using Govor.Core.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace Govor.API.Controllers;
@@ -13,8 +14,9 @@ public class InviteController : ControllerBase
{
_groupService = groupService;
}
[HttpGet("{code}")]
[Authorize]
public IActionResult JoinGroup(string code)
{
var group = _groupService.GetGroupByInvite(code);