diff options
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 } |