web provider
This commit is contained in:
parent
182a829284
commit
fce28007f6
2 changed files with 2 additions and 3 deletions
3
web.go
3
web.go
|
@ -17,7 +17,6 @@ type WebProvider struct {
|
|||
}
|
||||
|
||||
type Page struct {
|
||||
Title string
|
||||
Configuration Configuration
|
||||
}
|
||||
|
||||
|
@ -41,5 +40,5 @@ func GetHtmlConfigHandler(response http.ResponseWriter, request *http.Request) {
|
|||
if err != nil {
|
||||
http.Error(response, fmt.Sprintf("error parsing url %v", err), 500)
|
||||
}
|
||||
templates.ExecuteTemplate(response, "configuration.html", Page{Title: "Home", Configuration:*currentConfiguration})
|
||||
templates.ExecuteTemplate(response, "configuration.html", Page{Configuration:*currentConfiguration})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue