Compare commits
4 Commits
552ef17520
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 9bad5ea283 | |||
| f86ffb4467 | |||
| 63d9687ee3 | |||
| 66c7f9c40c |
@@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group 'tech.nevets'
|
group 'tech.nevets'
|
||||||
version '1.0.0'
|
version '1.1.0'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|||||||
@@ -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("/*");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user