Class FrontendController

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

@Profile("!development") @Controller public class FrontendController extends Object
This controller is only used in production. It forwards all requests to the frontend except for /csrf, which is used by Spring Security.
  • Constructor Details

    • FrontendController

      public FrontendController()
  • Method Details

    • index

      @GetMapping("/**/{path:[^\\.]*}") public String index()
    • csrf

      @GetMapping("/csrf") public org.springframework.http.ResponseEntity<String> csrf()