diff --git a/exceptiontrace/exceptiontrace-web/src/main/java/com/navercorp/pinpoint/exceptiontrace/web/controller/ExceptionTraceController.java b/exceptiontrace/exceptiontrace-web/src/main/java/com/navercorp/pinpoint/exceptiontrace/web/controller/ExceptionTraceController.java index b91618b1034ce..667820af3a038 100644 --- a/exceptiontrace/exceptiontrace-web/src/main/java/com/navercorp/pinpoint/exceptiontrace/web/controller/ExceptionTraceController.java +++ b/exceptiontrace/exceptiontrace-web/src/main/java/com/navercorp/pinpoint/exceptiontrace/web/controller/ExceptionTraceController.java @@ -52,7 +52,7 @@ * @author intr3p1d */ @RestController -@RequestMapping(value = "/errors") +@RequestMapping(value = "/api/errors") @Validated public class ExceptionTraceController { diff --git a/inspector-module/inspector-web/src/main/java/com/navercorp/pinpoint/inspector/web/controller/AgentInspectorStatController.java b/inspector-module/inspector-web/src/main/java/com/navercorp/pinpoint/inspector/web/controller/AgentInspectorStatController.java index 090de6f10894b..839d94d235add 100644 --- a/inspector-module/inspector-web/src/main/java/com/navercorp/pinpoint/inspector/web/controller/AgentInspectorStatController.java +++ b/inspector-module/inspector-web/src/main/java/com/navercorp/pinpoint/inspector/web/controller/AgentInspectorStatController.java @@ -42,7 +42,7 @@ * @author minwoo.jung */ @RestController -@RequestMapping("/inspector/agentStat") +@RequestMapping("/api/inspector/agentStat") public class AgentInspectorStatController { private final TimeWindowSampler DEFAULT_TIME_WINDOW_SAMPLER = new TimeWindowSlotCentricSampler(5000L, 200); diff --git a/inspector-module/inspector-web/src/main/java/com/navercorp/pinpoint/inspector/web/controller/ApplicationInspectorStatController.java b/inspector-module/inspector-web/src/main/java/com/navercorp/pinpoint/inspector/web/controller/ApplicationInspectorStatController.java index 34c20c852127c..67d1a570c2c01 100644 --- a/inspector-module/inspector-web/src/main/java/com/navercorp/pinpoint/inspector/web/controller/ApplicationInspectorStatController.java +++ b/inspector-module/inspector-web/src/main/java/com/navercorp/pinpoint/inspector/web/controller/ApplicationInspectorStatController.java @@ -23,7 +23,7 @@ import java.util.Objects; @RestController -@RequestMapping("/inspector/applicationStat") +@RequestMapping("/api/inspector/applicationStat") public class ApplicationInspectorStatController { private final TimeWindowSampler DEFAULT_TIME_WINDOW_SAMPLER_30M = new TimeWindowSlotCentricSampler(30000L, 200); private final TenantProvider tenantProvider; diff --git a/metric-module/metric/src/main/java/com/navercorp/pinpoint/metric/web/controller/SystemMetricController.java b/metric-module/metric/src/main/java/com/navercorp/pinpoint/metric/web/controller/SystemMetricController.java index 846716fdbeb94..e3d672e5c6d6a 100644 --- a/metric-module/metric/src/main/java/com/navercorp/pinpoint/metric/web/controller/SystemMetricController.java +++ b/metric-module/metric/src/main/java/com/navercorp/pinpoint/metric/web/controller/SystemMetricController.java @@ -44,7 +44,7 @@ * @author Hyunjoon Cho */ @RestController -@RequestMapping(value = "/systemMetric") +@RequestMapping(value = "/api/systemMetric") public class SystemMetricController { private final SystemMetricDataService systemMetricDataService; private final SystemMetricHostInfoService systemMetricHostInfoService; diff --git a/uristat/uristat-web/src/main/java/com/navercorp/pinpoint/uristat/web/controller/UriStatController.java b/uristat/uristat-web/src/main/java/com/navercorp/pinpoint/uristat/web/controller/UriStatController.java index a183a0ebd91be..64d99cf4960bd 100644 --- a/uristat/uristat-web/src/main/java/com/navercorp/pinpoint/uristat/web/controller/UriStatController.java +++ b/uristat/uristat-web/src/main/java/com/navercorp/pinpoint/uristat/web/controller/UriStatController.java @@ -43,7 +43,7 @@ import java.util.concurrent.TimeUnit; @RestController -@RequestMapping(value = "/uriStat") +@RequestMapping(value = "/api/uriStat") public class UriStatController { private final UriStatSummaryService uriStatService; private final TenantProvider tenantProvider; diff --git a/web/src/main/java/com/navercorp/pinpoint/web/WebServerConfig.java b/web/src/main/java/com/navercorp/pinpoint/web/WebServerConfig.java index cb461cd720d37..abec21da08663 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/WebServerConfig.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/WebServerConfig.java @@ -55,7 +55,7 @@ public ServletRegistrationBean servletRegistrationBean( WebMvcProperties webMvcProperties, ObjectProvider multipartConfig) { - final ServletRegistrationBean bean = new ServletRegistrationBean<>(dispatcherServlet, "/api/*", "/monitor/*"); + final ServletRegistrationBean bean = new ServletRegistrationBean<>(dispatcherServlet); bean.setName(DispatcherServletAutoConfiguration.DEFAULT_DISPATCHER_SERVLET_REGISTRATION_BEAN_NAME); bean.setLoadOnStartup(webMvcProperties.getServlet().getLoadOnStartup()); bean.setMultipartConfig(multipartConfig.getObject()); diff --git a/web/src/main/java/com/navercorp/pinpoint/web/applicationmap/controller/FilteredMapController.java b/web/src/main/java/com/navercorp/pinpoint/web/applicationmap/controller/FilteredMapController.java index 1d672067cc991..649fcd0fbce40 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/applicationmap/controller/FilteredMapController.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/applicationmap/controller/FilteredMapController.java @@ -42,6 +42,7 @@ import org.apache.logging.log4j.Logger; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; @@ -54,6 +55,7 @@ * @author jaehong.kim */ @RestController +@RequestMapping("/api") @Validated public class FilteredMapController { private final Logger logger = LogManager.getLogger(this.getClass()); diff --git a/web/src/main/java/com/navercorp/pinpoint/web/applicationmap/controller/MapController.java b/web/src/main/java/com/navercorp/pinpoint/web/applicationmap/controller/MapController.java index 245073bbc09dc..6ad169c4c19d7 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/applicationmap/controller/MapController.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/applicationmap/controller/MapController.java @@ -49,6 +49,7 @@ import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; @@ -65,6 +66,7 @@ * @author HyunGil Jeong */ @RestController +@RequestMapping("/api") @Validated public class MapController { private final Logger logger = LogManager.getLogger(this.getClass()); diff --git a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/ActiveThreadDumpController.java b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/ActiveThreadDumpController.java index 61f5b90db7631..0cac6d0100895 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/ActiveThreadDumpController.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/ActiveThreadDumpController.java @@ -41,7 +41,7 @@ * @author Taejin Koo */ @RestController -@RequestMapping("/agent") +@RequestMapping("/api/agent") @Validated public class ActiveThreadDumpController { private final ConfigProperties webProperties; diff --git a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/AdminController.java b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/AdminController.java index d9808f0668a0d..8ceb1dddd9948 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/AdminController.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/AdminController.java @@ -39,7 +39,7 @@ * @author HyunGil Jeong */ @RestController -@RequestMapping("/admin") +@RequestMapping("/api/admin") @Validated public class AdminController { diff --git a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/AgentInfoController.java b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/AgentInfoController.java index 2a6b0df8445d0..5a2bfe3288411 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/AgentInfoController.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/AgentInfoController.java @@ -57,6 +57,7 @@ * @author HyunGil Jeong */ @RestController +@RequestMapping("/api") @Validated public class AgentInfoController { private final AgentInfoService agentInfoService; diff --git a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/AgentListController.java b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/AgentListController.java index 0c9ccdda20c24..e09bb212fa65b 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/AgentListController.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/AgentListController.java @@ -49,7 +49,7 @@ * @author intr3p1d */ @RestController -@RequestMapping(value = "/agents") +@RequestMapping(value = "/api/agents") @Validated public class AgentListController { private final AgentInfoService agentInfoService; diff --git a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/AgentStatController.java b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/AgentStatController.java index c219a653c54a4..4d5ffd670ecdc 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/AgentStatController.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/AgentStatController.java @@ -46,7 +46,7 @@ * @author HyunGil Jeong */ @RestController -@RequestMapping("/getAgentStat/{chartType}") +@RequestMapping("/api/getAgentStat/{chartType}") @Validated public class AgentStatController { private final Logger logger = LogManager.getLogger(this.getClass()); diff --git a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/AlarmController.java b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/AlarmController.java index ee1222e415757..c20d68a88e77e 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/AlarmController.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/AlarmController.java @@ -43,7 +43,7 @@ * @author minwoo.jung */ @RestController -@RequestMapping(value={"/alarmRule", "/application/alarmRule"}) +@RequestMapping(value={"/api/alarmRule", "/api/application/alarmRule"}) @Validated public class AlarmController { diff --git a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/ApplicationDataSourceController.java b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/ApplicationDataSourceController.java index 571fef71d1c46..43efaa7310a24 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/ApplicationDataSourceController.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/ApplicationDataSourceController.java @@ -11,12 +11,14 @@ import org.apache.logging.log4j.Logger; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import java.util.List; @RestController +@RequestMapping("/api") @Validated public class ApplicationDataSourceController { private final Logger logger = LogManager.getLogger(this.getClass()); diff --git a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/ApplicationStatController.java b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/ApplicationStatController.java index 4d04e08adf88a..65c5827fbbf7c 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/ApplicationStatController.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/ApplicationStatController.java @@ -20,7 +20,7 @@ import java.util.Map; @RestController -@RequestMapping("/getApplicationStat/{chartType}/chart") +@RequestMapping("/api/getApplicationStat/{chartType}/chart") @Validated public class ApplicationStatController { diff --git a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/HeatMapController.java b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/HeatMapController.java index dd6321a13b57d..6a35fc1c3ab42 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/HeatMapController.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/HeatMapController.java @@ -32,7 +32,7 @@ import java.util.concurrent.TimeUnit; @RestController() -@RequestMapping("/heatmap") +@RequestMapping("/api/heatmap") @Validated public class HeatMapController { diff --git a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/ResponseTimeController.java b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/ResponseTimeController.java index a01ded8390f93..500573f7b7514 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/ResponseTimeController.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/ResponseTimeController.java @@ -44,6 +44,7 @@ import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; @@ -53,6 +54,7 @@ import java.util.Objects; @RestController +@RequestMapping("/api") public class ResponseTimeController { private final Logger logger = LogManager.getLogger(this.getClass()); diff --git a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/ScatterChartController.java b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/ScatterChartController.java index bbe892a4ffd31..9327c87720f2c 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/ScatterChartController.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/ScatterChartController.java @@ -43,6 +43,7 @@ import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; @@ -56,6 +57,7 @@ * @author jaehong.kim */ @RestController +@RequestMapping("/api") @Validated public class ScatterChartController { diff --git a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/UserController.java b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/UserController.java index c827c8995b69d..bf9d4c469f4f9 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/UserController.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/UserController.java @@ -43,7 +43,7 @@ * @author minwoo.jung */ @RestController -@RequestMapping(value = "/user") +@RequestMapping("/api/user") @Validated public class UserController { private final Logger logger = LogManager.getLogger(this.getClass()); diff --git a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/UserGroupController.java b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/UserGroupController.java index 2c06cfbacdffa..e210199067745 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/UserGroupController.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/UserGroupController.java @@ -46,7 +46,7 @@ * @author minwoo.jung */ @RestController -@RequestMapping(value = "/userGroup") +@RequestMapping(value = "/api/userGroup") @Validated public class UserGroupController { private final Logger logger = LogManager.getLogger(this.getClass()); diff --git a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/WebhookAlarmController.java b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/WebhookAlarmController.java index c4b7cbe86850f..4aafa18104dc4 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/WebhookAlarmController.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/authorization/controller/WebhookAlarmController.java @@ -39,7 +39,7 @@ * @author minwoo.jung */ @RestController -@RequestMapping(value = {"/alarmRule", "/application/alarmRule"}) +@RequestMapping(value = {"/api/alarmRule", "/api/application/alarmRule"}) @ConditionalOnProperty(name = WebhookModule.NAME, havingValue = "true", matchIfMissing = true) public class WebhookAlarmController { private final WebhookAlarmServiceFacade webhookAlarmServiceFacade; diff --git a/web/src/main/java/com/navercorp/pinpoint/web/controller/AgentStatisticsController.java b/web/src/main/java/com/navercorp/pinpoint/web/controller/AgentStatisticsController.java index 47317fcda91fc..8dd15502a4c24 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/controller/AgentStatisticsController.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/controller/AgentStatisticsController.java @@ -26,6 +26,7 @@ import org.springframework.http.HttpStatus; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.server.ResponseStatusException; @@ -39,6 +40,7 @@ * @author Taejin Koo */ @RestController +@RequestMapping("/api") @Validated public class AgentStatisticsController { diff --git a/web/src/main/java/com/navercorp/pinpoint/web/controller/ApdexScoreController.java b/web/src/main/java/com/navercorp/pinpoint/web/controller/ApdexScoreController.java index ac38071b8b851..848239e879882 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/controller/ApdexScoreController.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/controller/ApdexScoreController.java @@ -13,12 +13,14 @@ import jakarta.validation.constraints.PositiveOrZero; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import java.util.Objects; @RestController +@RequestMapping("/api") @Validated public class ApdexScoreController { private static final TimeWindowSampler APDEX_SCORE_TIME_WINDOW_SAMPLER = new TimeWindowSlotCentricSampler(60 * 1000, 200); diff --git a/web/src/main/java/com/navercorp/pinpoint/web/controller/ApplicationController.java b/web/src/main/java/com/navercorp/pinpoint/web/controller/ApplicationController.java index 04ee9f4a61426..e0685fc28a325 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/controller/ApplicationController.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/controller/ApplicationController.java @@ -41,6 +41,7 @@ */ @RestController +@RequestMapping("/api") @Validated public class ApplicationController { public static final int MAX_PAGING_LIMIT = 100; diff --git a/web/src/main/java/com/navercorp/pinpoint/web/controller/BusinessTransactionController.java b/web/src/main/java/com/navercorp/pinpoint/web/controller/BusinessTransactionController.java index 600a9342175d4..c29d2e90ec943 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/controller/BusinessTransactionController.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/controller/BusinessTransactionController.java @@ -43,6 +43,7 @@ import org.springframework.beans.factory.annotation.Value; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.servlet.support.ServletUriComponentsBuilder; @@ -58,6 +59,7 @@ * @author Taejin Koo */ @RestController +@RequestMapping("/api") @Validated public class BusinessTransactionController { private final Logger logger = LogManager.getLogger(this.getClass()); diff --git a/web/src/main/java/com/navercorp/pinpoint/web/controller/MainController.java b/web/src/main/java/com/navercorp/pinpoint/web/controller/MainController.java index c27fbe5ce571f..8f53c2cc397fc 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/controller/MainController.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/controller/MainController.java @@ -32,6 +32,7 @@ import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestHeader; +import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; @@ -43,6 +44,7 @@ * @author netspider */ @RestController +@RequestMapping("/api") @Validated public class MainController { diff --git a/web/src/main/java/com/navercorp/pinpoint/web/controller/NonWhiteLabelErrorController.java b/web/src/main/java/com/navercorp/pinpoint/web/controller/NonWhiteLabelErrorController.java index ec6a75a91cb54..a13f96ec9113e 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/controller/NonWhiteLabelErrorController.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/controller/NonWhiteLabelErrorController.java @@ -32,7 +32,7 @@ import java.util.Map; @RestController -@RequestMapping(value={"/error"}) +@RequestMapping(value={"/api/error"}) @Validated public class NonWhiteLabelErrorController extends AbstractErrorController { private final ErrorProperties errorProperties; diff --git a/web/src/main/java/com/navercorp/pinpoint/web/frontend/controller/FrontendConfigController.java b/web/src/main/java/com/navercorp/pinpoint/web/frontend/controller/FrontendConfigController.java index 767e01bd4e29c..bde2d84a048e9 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/frontend/controller/FrontendConfigController.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/frontend/controller/FrontendConfigController.java @@ -20,6 +20,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.LinkedHashMap; @@ -31,6 +32,7 @@ * @author HyunGil Jeong */ @RestController +@RequestMapping("/api") public class FrontendConfigController { private final Logger logger = LogManager.getLogger(this.getClass()); diff --git a/web/src/main/java/com/navercorp/pinpoint/web/install/controller/AgentDownloadController.java b/web/src/main/java/com/navercorp/pinpoint/web/install/controller/AgentDownloadController.java index 4bb0bfcfbe20b..d0bfdd53e2b17 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/install/controller/AgentDownloadController.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/install/controller/AgentDownloadController.java @@ -12,6 +12,7 @@ import java.util.Objects; @RestController +@RequestMapping("/api") public class AgentDownloadController { private final AgentDownLoadService agentDownLoadService; diff --git a/web/src/main/java/com/navercorp/pinpoint/web/query/controller/QueryController.java b/web/src/main/java/com/navercorp/pinpoint/web/query/controller/QueryController.java index cce2f4446de0b..136624ca336ae 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/query/controller/QueryController.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/query/controller/QueryController.java @@ -7,12 +7,14 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import java.util.Objects; @RestController +@RequestMapping("/api") public class QueryController { private final Logger logger = LogManager.getLogger(this.getClass()); diff --git a/web/src/main/java/com/navercorp/pinpoint/web/realtime/EchoController.java b/web/src/main/java/com/navercorp/pinpoint/web/realtime/EchoController.java index 382177c981962..60741a9d445a4 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/realtime/EchoController.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/realtime/EchoController.java @@ -32,7 +32,7 @@ import java.util.Objects; @RestController -@RequestMapping("/command") +@RequestMapping("/api/command") @Validated public class EchoController { diff --git a/webhook/src/main/java/com/navercorp/pinpoint/web/webhook/controller/WebhookController.java b/webhook/src/main/java/com/navercorp/pinpoint/web/webhook/controller/WebhookController.java index 131fbb1c0bb04..67c92cb2e651f 100644 --- a/webhook/src/main/java/com/navercorp/pinpoint/web/webhook/controller/WebhookController.java +++ b/webhook/src/main/java/com/navercorp/pinpoint/web/webhook/controller/WebhookController.java @@ -26,7 +26,7 @@ import java.util.Objects; @RestController -@RequestMapping(value={"/webhook", "/application/webhook"}) +@RequestMapping(value={"/api/webhook", "/api/application/webhook"}) public class WebhookController { private final Logger logger = LogManager.getLogger(this.getClass()); diff --git a/webhook/src/main/java/com/navercorp/pinpoint/web/webhook/controller/WebhookSendInfoController.java b/webhook/src/main/java/com/navercorp/pinpoint/web/webhook/controller/WebhookSendInfoController.java index 40d611e808b05..a5d439073e0b1 100644 --- a/webhook/src/main/java/com/navercorp/pinpoint/web/webhook/controller/WebhookSendInfoController.java +++ b/webhook/src/main/java/com/navercorp/pinpoint/web/webhook/controller/WebhookSendInfoController.java @@ -23,7 +23,7 @@ import java.util.Objects; @RestController -@RequestMapping(value={"/webhookSendInfo", "/application/webhookSendInfo"}) +@RequestMapping(value={"/api/webhookSendInfo", "/api/application/webhookSendInfo"}) public class WebhookSendInfoController { private final Logger logger = LogManager.getLogger(this.getClass());