revert: remove unused /images endpoints

This commit is contained in:
Guz
2024-12-17 11:24:04 -03:00
parent ffc803cd29
commit e2cbd648a1

View File

@@ -70,9 +70,9 @@ func NewWeb(opts Options) App {
r.Handle("/", &pages.Home{})
r.Handle("/assets/", opts.Assets)
imgs := &pages.Images{S3: opts.S3}
r.HandleFunc("GET /images", imgs.List)
r.HandleFunc("GET /images/{name}", imgs.Get)
// imgs := &pages.Images{S3: opts.S3}
// r.HandleFunc("GET /images", imgs.List)
// r.HandleFunc("GET /images/{name}", imgs.Get)
srv := http.Server{
Addr: fmt.Sprintf(":%d", opts.Port),