API everywhere
This commit is contained in:
parent
6692a91821
commit
c89a87d73c
4 changed files with 4 additions and 4 deletions
|
|
@ -7,7 +7,7 @@ using IAuthorizationService = SurveyBackend.Core.Services.IAuthorizationService;
|
|||
namespace SurveyBackend.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("auth")]
|
||||
[Route("api/auth")]
|
||||
public class AuthController : ControllerBase
|
||||
{
|
||||
private readonly IAuthorizationService _authorizationService;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ using SurveyLib.Core.Services;
|
|||
namespace SurveyBackend.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("surveys/{surveyId}/questions")]
|
||||
[Route("api/surveys/{surveyId}/questions")]
|
||||
public class QuestionController : ControllerBase
|
||||
{
|
||||
private readonly IQuestionService _questionService;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ using SurveyLib.Core.Services;
|
|||
namespace SurveyBackend.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("surveys")]
|
||||
[Route("api/surveys")]
|
||||
public class SurveyController : ControllerBase
|
||||
{
|
||||
private readonly ISurveyService _surveyService;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ using SurveyLib.Core.Services;
|
|||
namespace SurveyBackend.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("test")]
|
||||
[Route("api/test")]
|
||||
public class TestController : ControllerBase
|
||||
{
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue