Skip to content

Commit

Permalink
fix custom server docs (closes #250)
Browse files Browse the repository at this point in the history
  • Loading branch information
tipsy committed Nov 7, 2023
1 parent bb5e367 commit dc6589d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pages/docs/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -1400,15 +1400,15 @@ Javalin.create().start("127.0.0.1", 1235)
If you need to customize the embedded server, you can call the `server()` method:
{% capture java %}
Javalin.create(config -> {
config.server(() -> {
config.jetty.server(() -> {
Server server = new Server(); // configure this however you want
return server;
}
});
});
{% endcapture %}
{% capture kotlin %}
Javalin.create { config ->
config.server {
config.jetty.server {
val server = Server() // configure this however you want
server
}
Expand Down

0 comments on commit dc6589d

Please sign in to comment.