feat: images

This commit is contained in:
2026-02-23 09:50:42 +01:00
parent 3f321f0836
commit 6f98d730bb
21 changed files with 518 additions and 29 deletions
+3 -3
View File
@@ -3,14 +3,14 @@ package page
import (
"log/slog"
"github.com/studio-b12/gowebdav"
"git.schreifuchs.ch/schreifuchs/schreifuchs.ch/internal/filesystem"
)
type Service struct {
fs *gowebdav.Client
fs filesystem.FS
}
func New(fs *gowebdav.Client) *Service {
func New(fs filesystem.FS) *Service {
info, err := fs.ReadDir("/")
if err != nil {
slog.Error("could not read dir", "err", err)