Class ProxyController
java.lang.Object
org.craftercms.studio.controller.rest.v2.ProxyController
Controller to proxy request to preview & add the management token if needed
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<Object> getSiteLogEvents
(String body, String siteId, jakarta.servlet.http.HttpServletRequest request) This handler exists to allow securing the preview log monitor URLorg.springframework.http.ResponseEntity
<Object> proxyEngine
(String body, String siteId, jakarta.servlet.http.HttpServletRequest request)
-
Field Details
-
proxyService
-
-
Constructor Details
-
ProxyController
-
-
Method Details
-
getSiteLogEvents
@GetMapping("/api/1/monitoring/log.json") public org.springframework.http.ResponseEntity<Object> getSiteLogEvents(@RequestBody(required=false) String body, @RequestParam("crafterSite") String siteId, jakarta.servlet.http.HttpServletRequest request) throws URISyntaxException, SiteNotFoundException This handler exists to allow securing the preview log monitor URL -
proxyEngine
@RequestMapping("/**") public org.springframework.http.ResponseEntity<Object> proxyEngine(@RequestBody(required=false) String body, @RequestParam("crafterSite") String siteId, jakarta.servlet.http.HttpServletRequest request) throws URISyntaxException, SiteNotFoundException
-