API everywhere

This commit is contained in:
Вячеслав 2025-04-21 04:15:40 +05:00
parent 6692a91821
commit c89a87d73c
4 changed files with 4 additions and 4 deletions

View file

@ -7,7 +7,7 @@ using IAuthorizationService = SurveyBackend.Core.Services.IAuthorizationService;
namespace SurveyBackend.Controllers; namespace SurveyBackend.Controllers;
[ApiController] [ApiController]
[Route("auth")] [Route("api/auth")]
public class AuthController : ControllerBase public class AuthController : ControllerBase
{ {
private readonly IAuthorizationService _authorizationService; private readonly IAuthorizationService _authorizationService;

View file

@ -8,7 +8,7 @@ using SurveyLib.Core.Services;
namespace SurveyBackend.Controllers; namespace SurveyBackend.Controllers;
[ApiController] [ApiController]
[Route("surveys/{surveyId}/questions")] [Route("api/surveys/{surveyId}/questions")]
public class QuestionController : ControllerBase public class QuestionController : ControllerBase
{ {
private readonly IQuestionService _questionService; private readonly IQuestionService _questionService;

View file

@ -11,7 +11,7 @@ using SurveyLib.Core.Services;
namespace SurveyBackend.Controllers; namespace SurveyBackend.Controllers;
[ApiController] [ApiController]
[Route("surveys")] [Route("api/surveys")]
public class SurveyController : ControllerBase public class SurveyController : ControllerBase
{ {
private readonly ISurveyService _surveyService; private readonly ISurveyService _surveyService;

View file

@ -4,7 +4,7 @@ using SurveyLib.Core.Services;
namespace SurveyBackend.Controllers; namespace SurveyBackend.Controllers;
[ApiController] [ApiController]
[Route("test")] [Route("api/test")]
public class TestController : ControllerBase public class TestController : ControllerBase
{ {
} }