Skip to content

Commit

Permalink
Patch: Add filter list to /v1/info, fix grammar in /v1/info
Browse files Browse the repository at this point in the history
  • Loading branch information
cerus committed Jun 12, 2022
1 parent 7f078e7 commit fa0e993
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>dev.cerus</groupId>
<artifactId>mc-head-render</artifactId>
<version>1.0.2</version>
<version>1.0.3</version>

<properties>
<maven.compiler.source>17</maven.compiler.source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ public void handle(@NotNull final Context ctx) throws Exception {
"cached": %d,
"expiration_in_seconds": %d
},
"skin_provider": %s,
"renderer": %s,
"skin_providers": %s,
"renderers": %s,
"filters": %s,
"ratelimit": {
"max_requests": %d,
"period_in_seconds": %d,
Expand All @@ -59,6 +60,9 @@ public void handle(@NotNull final Context ctx) throws Exception {
"[" + this.webServer.getRendererRegistry().ids().stream()
.map(s -> "\"" + s + "\"")
.collect(Collectors.joining(", ")) + "]",
"[" + this.webServer.getFilterRegistry().ids().stream()
.map(s -> "\"" + s + "\"")
.collect(Collectors.joining(", ")) + "]",
Globals.MAX_REQUESTS,
Globals.RATE_LIMITER_EXPIRATION,
this.webServer.getRateLimiter().getRequests(ctx)
Expand Down

0 comments on commit fa0e993

Please sign in to comment.