Refactor UI (#33)

- add html to / instead of 404
- add client side regex to /logs
This commit is contained in:
Benson Wong
2024-12-23 19:48:59 -08:00
committed by GitHub
parent db6715bec3
commit ae3ef9bc39
5 changed files with 169 additions and 41 deletions

10
proxy/html_files.go Normal file
View File

@@ -0,0 +1,10 @@
package proxy
import "embed"
//go:embed html
var htmlFiles embed.FS
func getHTMLFile(path string) ([]byte, error) {
return htmlFiles.ReadFile("html/" + path)
}