12345678910111213141516171819202122232425262728293031 |
- import io.javalin.Javalin;
-
- import static io.javalin.plugin.rendering.template.TemplateUtil.model;
-
- public class Quitt {
- public static void main(String[] args) {
- Javalin app = Javalin.create().start(7000);
- app.config.addStaticFiles("/stylesheets");
- app.config.addStaticFiles("/components");
-
- app.get("/", ctx -> {
- ctx.render("/index.html", model("firstName", "John", "lastName", "Doe"));
- });
-
- app.get("/index.html", ctx -> {
- ctx.render("/index.html", model("firstName", "John", "lastName", "Doe"));
- });
-
- app.get("/balance.html", ctx -> {
- ctx.render("/balance.html", model("firstName", "John", "lastName", "Doe"));
- });
-
-
-
- }
-
- public void get()
- {
-
- }
- }
|