Skip to content

Commit

Permalink
feat: add a style-config entrypoint to expose datadir/georchestra sty…
Browse files Browse the repository at this point in the history
…le (logo and stylesheet)
  • Loading branch information
f-necas committed Dec 3, 2024
1 parent 3583b0c commit b4837cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ public String loginPage(@RequestParam Map<String, String> allRequestParams, Mode
return "login";
}

@GetMapping(path = "/config", produces = "application/json")
@GetMapping(path = "/style-config", produces = "application/json")
@ResponseBody
public Mono<Map<String, Object>> config(ServerWebExchange exchange) {
public Mono<Map<String, Object>> styleConfig() {
Map<String, Object> ret = new LinkedHashMap<>();
ret.put("stylesheet", georchestraStylesheet);
ret.put("logo", logoUrl);
Expand Down
2 changes: 1 addition & 1 deletion gateway/src/main/resources/static/login/getConfig.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
fetch("/config").then(res => {
fetch("/style-config").then(res => {
if (res.ok) {
return res.json();
}
Expand Down

0 comments on commit b4837cc

Please sign in to comment.