Compare commits

...

4 Commits

Author SHA1 Message Date
9bad5ea283 Fixed missing port error 2024-08-07 15:26:11 -04:00
f86ffb4467 Off by one... 2024-08-07 15:15:10 -04:00
63d9687ee3 Update version 2024-08-07 15:11:01 -04:00
66c7f9c40c Make port configurable 2024-08-07 15:09:12 -04:00
2 changed files with 7 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ plugins {
} }
group 'tech.nevets' group 'tech.nevets'
version '1.0.0' version '1.1.0'
repositories { repositories {
mavenCentral() mavenCentral()

View File

@@ -9,7 +9,12 @@ import static spark.Spark.*;
public class Server { public class Server {
public static void main(String[] args) { public static void main(String[] args) {
port(8080); if (args.length >= 1) {
port(Integer.parseInt(args[0]));
} else {
port(8080);
}
path("/badge", () -> { path("/badge", () -> {
before("/*"); before("/*");