allow download of .../dist assets

This commit is contained in:
Mikaël Cluseau
2025-07-08 21:45:33 +02:00
parent 62882e78d8
commit 08cbccc756
2 changed files with 6 additions and 0 deletions

View File

@ -72,6 +72,7 @@ func main() {
staticHandler := http.FileServer(http.FS(dlshtml.FS))
http.Handle("/favicon.ico", staticHandler)
http.Handle("/ui/", staticHandler)
http.Handle("/dist/", http.StripPrefix("/dist/", http.FileServer(http.Dir(*dataDir+"/dist"))))
http.Handle("/public-state", streamsse.StreamHandler(wPublicState))
http.Handle("/state", requireAdmin(streamsse.StreamHandler(wState)))

View File

@ -55,6 +55,11 @@ th, tr:last-child > td {
textarea, input[type=text] {
background: #111;
color: #ddd;
border: dotted 1pt;
border-top-color: #805300;
border-left-color: #805300;
border-bottom-color: orange;
border-right-color: orange;
}
}