1
0
Fork 0
mirror of https://github.com/SinTan1729/chhoto-url synced 2024-12-26 07:38:36 -06:00

Dynamic port config

This commit is contained in:
Przemek Dragańczuk 2020-02-14 18:42:21 +01:00
parent 8a264c133c
commit 0f41363740

View file

@ -15,6 +15,8 @@ public class App {
staticFiles.location("/public");
}
port(Integer.parseInt(System.getProperty("port", "4567")));
get("/", (req, res) -> {
res.redirect("/index.html");
return "Redirect";