package server;

import io.javalin.Javalin;

public class WebApplication {
    public static void main(String... args) {
        Javalin app = Javalin.create().start(7000);
        app.get("/solve", ctx -> ctx.result("hello world"));
    }
}

@@ -36,16 +36,62 @@
 Javalin;
+%0Aimport io.javalin.plugin.json.JavalinJackson;
 %0A%0Apublic
@@ -197,16 +197,150 @@
 .create(
+config -%3E %7B%0A            config.defaultContentType = %22application/json%22;%0A            config.addStaticFiles(%22/webapp/public%22);%0A        %7D
 ).start(
@@ -346,16 +346,17 @@
 (7000);%0A
+%0A
         
@@ -407,16 +407,171 @@
 orld%22));
+%0A%0A        app.post(%22/solve%22, ctx -%3E %7B%0A            var puzzle = ctx.body();%0A            System.err.println(puzzle);%0A            ctx.status(204);%0A        %7D);
 %0A    %7D%0A%7D

add static resource path, post handler