aboutsummaryrefslogtreecommitdiff
path: root/internal/api/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/server.go')
-rw-r--r--internal/api/server.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/internal/api/server.go b/internal/api/server.go
new file mode 100644
index 0000000..c12c5bd
--- /dev/null
+++ b/internal/api/server.go
@@ -0,0 +1,17 @@
+package api
+
+import (
+ "net/http"
+
+ "github.com/RanXom/galleryd/internal/service"
+)
+
+// Server exposes the gallery over HTTP
+type Server struct {
+ config Config
+
+ mux *http.ServeMux
+ http *http.Server
+
+ gallery service.GalleryService
+}