created SurveyController for tests

This commit is contained in:
Вячеслав 2025-04-16 21:54:48 +05:00
parent 720f041abf
commit 77a49ff49b
2 changed files with 46 additions and 13 deletions

View file

@ -7,17 +7,4 @@ namespace SurveyBackend.Controllers;
[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);
}
}