Add timestamp to /v1/metadata endpoint

This commit is contained in:
Aurora Lahtela 2022-08-21 10:41:23 +03:00
parent 339449742b
commit 2f6718a78f

View File

@ -75,6 +75,7 @@ public class MetadataJSONResolver implements NoAuthResolver {
private Response getResponse() {
return Response.builder()
.setJSONContent(Maps.builder(String.class, Object.class)
.put("timestamp", System.currentTimeMillis())
.put("contributors", Contributors.getContributors())
.put("defaultTheme", config.get(DisplaySettings.THEME))
.put("gmPieColors", theme.getPieColors(ThemeVal.GRAPH_GM_PIE))