guys probably we just created INTEGRATION with our library......

This commit is contained in:
Вячеслав 2025-04-16 21:01:10 +05:00
parent 8c0ba59ff7
commit 720f041abf
5 changed files with 74 additions and 9 deletions

View file

@ -1,6 +1,23 @@
using Microsoft.AspNetCore.Mvc;
using SurveyLib.Core.Services;
namespace SurveyBackend.Controllers;
public class TestController
[ApiController]
[Route("test")]
public class TestController : ControllerBase
{
private readonly ISurveyService _surveyService;
public TestController(ISurveyService surveyService)
{
_surveyService = surveyService;
}
[HttpGet]
public async Task<IActionResult> Get()
{
var result = await _surveyService.GetSurveysAsync();
return Ok(result);
}
}