diff --git a/gradle.properties b/gradle.properties index c839e40..62b2888 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -version=0.1.5 +version=0.2.0 group=diruptio jetbrains_annotations_version=24.1.0 gson_version=2.10.1 diff --git a/info-module/src/main/java/diruptio/spikedog/info/InfoServlet.java b/info-module/src/main/java/diruptio/spikedog/info/InfoServlet.java index 6c20315..8b56902 100644 --- a/info-module/src/main/java/diruptio/spikedog/info/InfoServlet.java +++ b/info-module/src/main/java/diruptio/spikedog/info/InfoServlet.java @@ -2,8 +2,14 @@ import diruptio.spikedog.HttpRequest; import diruptio.spikedog.HttpResponse; +import diruptio.spikedog.Module; +import diruptio.spikedog.ModuleLoader; +import diruptio.spikedog.Spikedog; import java.nio.charset.StandardCharsets; +import java.util.ArrayList; import java.util.Base64; +import java.util.Comparator; +import java.util.List; import java.util.function.BiConsumer; public class InfoServlet implements BiConsumer { @@ -26,7 +32,26 @@ public void accept(HttpRequest request, HttpResponse response) { // Authorized response.setStatus(200, "OK"); - response.setHeader("Content-Type", "text/plain"); - response.setContent("

Spikedog Info

"); + response.setHeader("Content-Type", "text/html"); + StringBuilder content = new StringBuilder(""); + content.append("Spikedog Info>"); + content.append(""); + content.append("

Spikedog Info

"); + content.append("Version: ").append(Spikedog.VERSION).append("
"); + content.append("Modules:
Servlets: