From 2f6718a78fb21e72658e4cdf05ab13c7a238b643 Mon Sep 17 00:00:00 2001 From: Aurora Lahtela <24460436+AuroraLS3@users.noreply.github.com> Date: Sun, 21 Aug 2022 10:41:23 +0300 Subject: [PATCH] Add timestamp to /v1/metadata endpoint --- .../delivery/webserver/resolver/json/MetadataJSONResolver.java | 1 + 1 file changed, 1 insertion(+) diff --git a/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/resolver/json/MetadataJSONResolver.java b/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/resolver/json/MetadataJSONResolver.java index 4595d8656..600c8acbe 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/resolver/json/MetadataJSONResolver.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/resolver/json/MetadataJSONResolver.java @@ -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))