summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/model.go4
-rw-r--r--api/server.go16
2 files changed, 20 insertions, 0 deletions
diff --git a/api/model.go b/api/model.go
new file mode 100644
index 0000000..e93d6b6
--- /dev/null
+++ b/api/model.go
@@ -0,0 +1,4 @@
+package api
+
+type TaskStatusResponse struct {
+}
diff --git a/api/server.go b/api/server.go
new file mode 100644
index 0000000..4cfe8f4
--- /dev/null
+++ b/api/server.go
@@ -0,0 +1,16 @@
+package api
+
+import (
+ "github.com/gofiber/fiber/v2"
+ "github.com/keuin/slbr/logging"
+)
+
+func StartServer(logger logging.Logger, addr string) error {
+ app := fiber.New()
+
+ app.Get("/", func(c *fiber.Ctx) error {
+ return c.SendString("Hello, World!")
+ })
+
+ return app.Listen(addr)
+}