created SurveyController for tests
This commit is contained in:
parent
720f041abf
commit
77a49ff49b
2 changed files with 46 additions and 13 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue