Package com.onec.ui

Class ThemeController

java.lang.Object
com.onec.ui.ThemeController

@RestController @RequestMapping("/api") public class ThemeController extends Object
  • Constructor Details

    • ThemeController

      public ThemeController(UiProperties properties, UiLayout layout, org.springframework.beans.factory.ObjectProvider<UpdateChecker> updateChecker)
  • Method Details

    • getTheme

      @GetMapping("/theme") public Map<String,String> getTheme()
    • getConfig

      @GetMapping("/config") public Map<String,Object> getConfig()
    • getBranding

      @GetMapping("/branding") public Map<String,Object> getBranding()
      The consumer's branding for the web client to apply at runtime: the app name (→ document title), the logo (→ login screen), the favicon, and the per-mode brand palette. The DivKit chrome renders the logo and palette server-side; this endpoint covers the parts the React shell owns and paints itself — the page title, favicon, login mark, and the island/tab accent (which the React shell draws from its own tokens, not from server-rendered DivKit).