Add ability to browse data
This commit is contained in:
3
main.go
3
main.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user