summaryrefslogtreecommitdiff
path: root/cfg
diff options
context:
space:
mode:
Diffstat (limited to 'cfg')
-rw-r--r--cfg/flags.go8
-rw-r--r--cfg/paths.go8
2 files changed, 16 insertions, 0 deletions
diff --git a/cfg/flags.go b/cfg/flags.go
new file mode 100644
index 0000000..8d708bb
--- /dev/null
+++ b/cfg/flags.go
@@ -0,0 +1,8 @@
+package cfg
+
+import "github.com/spf13/pflag"
+
+var (
+ Port = pflag.IntP("port", "p", 23882, "port to serve on")
+ Host = pflag.StringP("host", "h", "0.0.0.0", "host to serve on")
+)
diff --git a/cfg/paths.go b/cfg/paths.go
new file mode 100644
index 0000000..0833e42
--- /dev/null
+++ b/cfg/paths.go
@@ -0,0 +1,8 @@
+package cfg
+
+var (
+ CreateMethod = "POST"
+ CreatePath = "/api/game/create"
+ ConnectMethod = "GET"
+ ConnectPath = "/api/game/{id}/connect"
+)