Add ability to browse data

This commit is contained in:
2025-03-24 12:26:31 +01:00
parent c459148d33
commit dbfbd6e164
9 changed files with 272 additions and 5 deletions

View File

@@ -37,6 +37,8 @@ func main() {
Funcs(template.FuncMap{
"statusText": http.StatusText,
"createDeviceLink": createDeviceLink,
"formatMemorySize": formatMemorySize,
"formatType": formatType,
}).
ParseFS(templateFS, "templates/*.gohtml")
@@ -54,6 +56,7 @@ func main() {
r.GET("/device", app.getDevice)
r.GET("/create", app.getCreateDevice)
r.POST("/create", app.postCreateDevice)
r.GET("/browse", app.getBrowse)
err = r.Run()
if err != nil {
log.Fatalf("error serving website: %v", err)