summaryrefslogtreecommitdiff
path: root/cmd/sparkled/main.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-04-10 17:35:46 -0600
committermo khan <mo@mokhan.ca>2025-04-10 17:35:46 -0600
commitd8fd76b1c0c0bd86b2114dcf6af0b6e34d4783f3 (patch)
tree32d71c0e6a9a0c25789ab90a29ef742001898afc /cmd/sparkled/main.go
parenta722bd0ef4f69547229921eb0fe2eefce3ed6397 (diff)
feat: add a single API endpoint to return a list of sparkles
Diffstat (limited to 'cmd/sparkled/main.go')
-rw-r--r--cmd/sparkled/main.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/cmd/sparkled/main.go b/cmd/sparkled/main.go
new file mode 100644
index 0000000..893f708
--- /dev/null
+++ b/cmd/sparkled/main.go
@@ -0,0 +1,16 @@
+package main
+
+import (
+ "log"
+ "net/http"
+
+ "github.com/xlgmokha/x/pkg/env"
+ "gitlab.com/mokhax/sparkled/pkg/web"
+)
+
+func main() {
+ log.Fatal(http.ListenAndServe(
+ env.Fetch("BIND_ADDR", ":http"),
+ web.NewServer(nil),
+ ))
+}