diff options
Diffstat (limited to 'pim_http.go')
-rw-r--r-- | pim_http.go | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pim_http.go b/pim_http.go index e04c702..93c6ad6 100644 --- a/pim_http.go +++ b/pim_http.go @@ -6,6 +6,11 @@ import ( "net/http" ) +type PimInspectView struct { + User *LoggedUser + Debug string +} + func handlePimInspect(w http.ResponseWriter, r *http.Request) { user := RequireUserHtml(w, r) if user == nil { @@ -24,8 +29,13 @@ func handlePimInspect(w http.ResponseWriter, r *http.Request) { return } + view := PimInspectView { + User: user, + Debug: string(pim_json), + } + tKey := getTemplate("pim_inspect.html") - tKey.Execute(w, string(pim_json)) + tKey.Execute(w, view) } func handlePimSetup(w http.ResponseWriter, r *http.Request) { |