diff options
| author | RanXom <saiyedshizain@gmail.com> | 2026-07-13 15:05:20 +0530 |
|---|---|---|
| committer | RanXom <saiyedshizain@gmail.com> | 2026-07-13 15:05:20 +0530 |
| commit | cbad596b7825550b2e9cb1d6322f50acd7f1c9a7 (patch) | |
| tree | 0a8217d66ca0847c9635c63744a52fb93500b8b2 /internal/api | |
| parent | cee3fcb2be34f86bdd6a3e19cb57a2e3c1cf34b4 (diff) | |
| download | galleryd-cbad596b7825550b2e9cb1d6322f50acd7f1c9a7.tar.xz galleryd-cbad596b7825550b2e9cb1d6322f50acd7f1c9a7.zip | |
refactor(api): store HTTP multiplexer
Diffstat (limited to 'internal/api')
| -rw-r--r-- | internal/api/new.go | 1 | ||||
| -rw-r--r-- | internal/api/server.go | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/internal/api/new.go b/internal/api/new.go index d5f2b12..a9a08eb 100644 --- a/internal/api/new.go +++ b/internal/api/new.go @@ -12,6 +12,7 @@ func New(config Config) *Server { return &Server{ config: config, + mux: mux, http: server, } } diff --git a/internal/api/server.go b/internal/api/server.go index 512ced3..c455683 100644 --- a/internal/api/server.go +++ b/internal/api/server.go @@ -1,10 +1,13 @@ package api -import "net/http" +import ( + "net/http" +) // Server exposes the gallery over HTTP type Server struct { config Config + mux *http.ServeMux http *http.Server } |