Package com.dani.bff.api
Class DashboardController
java.lang.Object
com.dani.bff.api.DashboardController
HTTP API dedicated to the React dashboard experience.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<DashboardResponse> dashboard(org.springframework.security.oauth2.jwt.Jwt jwt) Returns the dashboard model assembled for the authenticated user.
-
Constructor Details
-
DashboardController
-
-
Method Details
-
dashboard
@GetMapping("/dashboard") public reactor.core.publisher.Mono<DashboardResponse> dashboard(@AuthenticationPrincipal org.springframework.security.oauth2.jwt.Jwt jwt) Returns the dashboard model assembled for the authenticated user.- Parameters:
jwt- authenticated JWT supplied by Spring Security- Returns:
- a frontend-ready dashboard response
-