aboutsummaryrefslogtreecommitdiff
path: root/internal/api/server.go
blob: ad2d776cfe2cebb0d06e29a6979e721180ff64e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package api

import (
	"net/http"

	"github.com/RanXom/galleryd/internal/service"
	"github.com/RanXom/galleryd/internal/thumbnail"
)

// Server exposes the gallery over HTTP
type Server struct {
	config Config

	mux  *http.ServeMux
	http *http.Server

	gallery    service.GalleryService
	thumbnails *thumbnail.Generator
}