Skip to content

Commit

Permalink
Fix App
Browse files Browse the repository at this point in the history
  • Loading branch information
zHd4 committed Mar 15, 2024
1 parent 06562fa commit 90f3f26
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/main/java/hexlet/code/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,12 @@ public static Javalin getApp() throws IOException, SQLException {

Javalin app = Javalin.create(config -> {
if (!isProduction()) {
config.plugins.enableDevLogging();
config.bundledPlugins.enableDevLogging();
}

config.fileRenderer(new JavalinJte(createTemplateEngine()));
});

JavalinJte.init(createTemplateEngine());
addRoutes(app);

app.before(ctx -> ctx.attribute("ctx", ctx));
Expand Down

0 comments on commit 90f3f26

Please sign in to comment.