diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-04-19 12:17:27 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-04-19 12:17:27 +0200 |
commit | ddb1ca205abb6349b59bc5ea7764a68484e72338 (patch) | |
tree | 84db9ac2260ad87b04bca10ba6a90ecb1b4b83b3 /garage.go | |
parent | bdb9af5a26f49799cb1feec866d289513eb09e7b (diff) | |
download | guichet-ddb1ca205abb6349b59bc5ea7764a68484e72338.tar.gz guichet-ddb1ca205abb6349b59bc5ea7764a68484e72338.zip |
bind website page
Diffstat (limited to 'garage.go')
-rw-r--r-- | garage.go | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -92,16 +92,20 @@ func handleGarageKey(w http.ResponseWriter, r *http.Request) { tKey.Execute(w, &view) } +type webListView struct { + Status *LoginStatus + Key *garage.KeyInfo +} func handleGarageWebsiteList(w http.ResponseWriter, r *http.Request) { login, s3key, err := checkLoginAndS3(w, r) if err != nil { log.Println(err) return } - log.Println(login, s3key) + view := webListView{Status: login, Key: s3key} tWebsiteList := getTemplate("garage_website_list.html") - tWebsiteList.Execute(w, nil) + tWebsiteList.Execute(w, &view) } func handleGarageWebsiteNew(w http.ResponseWriter, r *http.Request) { |