guys probably we just created INTEGRATION with our library......
This commit is contained in:
parent
8c0ba59ff7
commit
720f041abf
5 changed files with 74 additions and 9 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue