diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock index ee6cb6e..784aa36 100644 Binary files a/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/.gradle/file-system.probe b/.gradle/file-system.probe index 7c1226e..e3f06e7 100644 Binary files a/.gradle/file-system.probe and b/.gradle/file-system.probe differ diff --git a/src/main/java/com/team4/giftidea/controller/ProxyController.java b/src/main/java/com/team4/giftidea/controller/ProxyController.java new file mode 100644 index 0000000..a4eec70 --- /dev/null +++ b/src/main/java/com/team4/giftidea/controller/ProxyController.java @@ -0,0 +1,18 @@ +package com.team4.giftidea.controller; + +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.client.RestTemplate; + +@RestController +@RequestMapping("/api/proxy") +public class ProxyController { + + private final RestTemplate restTemplate = new RestTemplate(); + + @GetMapping("/kream") + public ResponseEntity proxyToKream(@RequestParam String url) { + String response = restTemplate.getForObject(url, String.class); + return ResponseEntity.ok(response); + } +} \ No newline at end of file