presenceNikita/Demo/presence_api/Controllers/GroupController.cs

25 lines
507 B
C#
Raw Normal View History

2024-11-10 18:56:16 +00:00
using Microsoft.AspNetCore.Mvc;
using System.Text.RegularExpressions;
using Domain;
namespace presence_api.Controllers;
[ApiController]
[Route("api/[controller]")]
public class GroupController() : ControllerBase
{
private readonly GroupUseCase _groupUseCase;
public GroupController(GroupUseCase groupUseCase)
{
_groupUseCase = groupUseCase;
}
[HttpGet]
public ActionResult<IEnumerable<Group>> getGroups()
{
return Ok(_groupUseCase.getAllGroup());
}
}