feat: next

This commit is contained in:
2025-05-12 11:30:33 -04:00
parent cdeaa13d92
commit 07cec78aa5
36 changed files with 1553 additions and 327 deletions

View File

@ -2,7 +2,6 @@ package client
import (
"embed"
"io"
"io/fs"
"net/http"
@ -10,8 +9,8 @@ import (
)
func NewClientHandler(key string, clientFS embed.FS) http.Handler {
_, err := clientFS.ReadDir(".")
if err == io.EOF {
entries, err := clientFS.ReadDir(".")
if err != nil || len(entries) == 0 {
return http.NotFoundHandler()
}