Refactor UI (#33)
- add html to / instead of 404 - add client side regex to /logs
This commit is contained in:
10
proxy/html_files.go
Normal file
10
proxy/html_files.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user