allow download of .../dist assets
This commit is contained in:
@ -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)))
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user