mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 11:44:56 +00:00
AuthController work
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user