Class FrontendProxyController

java.lang.Object
edu.ucsb.cs156.gauchoride.controllers.FrontendProxyController

@Profile("development") @RestController public class FrontendProxyController extends Object
This controller is only used in development. It forwards all requests to the frontend except for requests that specifically are handled by the backend.
  • Constructor Details

    • FrontendProxyController

      public FrontendProxyController()
  • Method Details

    • proxy

      @GetMapping({"/","/{path:^(?!api|oauth2|swagger-ui).*}/**"}) public org.springframework.http.ResponseEntity<String> proxy(org.springframework.cloud.gateway.mvc.ProxyExchange<String> proxy)