From c89a87d73c114e0725e3854e4f3d03880001c444 Mon Sep 17 00:00:00 2001 From: shept Date: Mon, 21 Apr 2025 04:15:40 +0500 Subject: [PATCH] API everywhere --- SurveyBackend/SurveyBackend.API/Controllers/AuthController.cs | 2 +- .../SurveyBackend.API/Controllers/QuestionController.cs | 2 +- SurveyBackend/SurveyBackend.API/Controllers/SurveyController.cs | 2 +- SurveyBackend/SurveyBackend.API/Controllers/TestController.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SurveyBackend/SurveyBackend.API/Controllers/AuthController.cs b/SurveyBackend/SurveyBackend.API/Controllers/AuthController.cs index efa8023..6e5148a 100644 --- a/SurveyBackend/SurveyBackend.API/Controllers/AuthController.cs +++ b/SurveyBackend/SurveyBackend.API/Controllers/AuthController.cs @@ -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; diff --git a/SurveyBackend/SurveyBackend.API/Controllers/QuestionController.cs b/SurveyBackend/SurveyBackend.API/Controllers/QuestionController.cs index fcaabf2..a8b5764 100644 --- a/SurveyBackend/SurveyBackend.API/Controllers/QuestionController.cs +++ b/SurveyBackend/SurveyBackend.API/Controllers/QuestionController.cs @@ -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; diff --git a/SurveyBackend/SurveyBackend.API/Controllers/SurveyController.cs b/SurveyBackend/SurveyBackend.API/Controllers/SurveyController.cs index 6db2d78..d471152 100644 --- a/SurveyBackend/SurveyBackend.API/Controllers/SurveyController.cs +++ b/SurveyBackend/SurveyBackend.API/Controllers/SurveyController.cs @@ -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; diff --git a/SurveyBackend/SurveyBackend.API/Controllers/TestController.cs b/SurveyBackend/SurveyBackend.API/Controllers/TestController.cs index 2860970..cbf5688 100644 --- a/SurveyBackend/SurveyBackend.API/Controllers/TestController.cs +++ b/SurveyBackend/SurveyBackend.API/Controllers/TestController.cs @@ -4,7 +4,7 @@ using SurveyLib.Core.Services; namespace SurveyBackend.Controllers; [ApiController] -[Route("test")] +[Route("api/test")] public class TestController : ControllerBase { } \ No newline at end of file