Update SurveyLib and start refactoring endpoint paths
This commit is contained in:
parent
c2f6ba6dde
commit
637e6c9824
5 changed files with 22 additions and 15 deletions
|
|
@ -1,10 +1,8 @@
|
|||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using SurveyBackend.Contexts;
|
||||
using SurveyBackend.Core.Contexts;
|
||||
using SurveyBackend.DTOs.Completion;
|
||||
using SurveyBackend.Mappers;
|
||||
using SurveyLib.Core.Models;
|
||||
using SurveyLib.Core.Services;
|
||||
|
||||
namespace SurveyBackend.Controllers;
|
||||
|
|
@ -31,7 +29,8 @@ public class CompletionController : ControllerBase
|
|||
return Ok(result);
|
||||
}
|
||||
|
||||
[HttpGet("{id:int}")]
|
||||
[HttpGet]
|
||||
[Route("/api/completions/{id:int}")]
|
||||
[Authorize]
|
||||
public async Task<IActionResult> GetCompletionAsync(int id)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue