mirror of
https://github.com/minoplhy/chhoto-url.git
synced 2024-11-23 01:26:46 +00:00
Dynamic port config
This commit is contained in:
parent
8a264c133c
commit
0f41363740
@ -15,6 +15,8 @@ public class App {
|
|||||||
staticFiles.location("/public");
|
staticFiles.location("/public");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
port(Integer.parseInt(System.getProperty("port", "4567")));
|
||||||
|
|
||||||
get("/", (req, res) -> {
|
get("/", (req, res) -> {
|
||||||
res.redirect("/index.html");
|
res.redirect("/index.html");
|
||||||
return "Redirect";
|
return "Redirect";
|
||||||
|
Loading…
Reference in New Issue
Block a user