diff --git a/handler.go b/handler.go index 801f8dd..a5684ab 100644 --- a/handler.go +++ b/handler.go @@ -20,7 +20,7 @@ func UIIndex(ctx context.Context, bottinClient *bottin.APIClient, dbClient *DBCl Result string } - return c.Render(http.StatusOK, "index", func() (d data) { + return c.Render(http.StatusOK, "app", func() (d data) { if err := func() error { select { case <-ctx.Done(): @@ -78,7 +78,7 @@ func UICreateTransaction(ctx context.Context, cfg Config, bottinClient *bottin.A //BottinHealth bottin.ReadHealthResponse } - return c.Render(http.StatusOK, "index", func() (d data) { + return c.Render(http.StatusOK, "app", func() (d data) { if err := func() error { if bottinClient == nil { return fmt.Errorf("Cannot operate on nil *bottin.APIClient") diff --git a/ui/index.html b/ui/app.html similarity index 99% rename from ui/index.html rename to ui/app.html index a10c75a..730837f 100644 --- a/ui/index.html +++ b/ui/app.html @@ -1,4 +1,4 @@ -{{ define "index" }} +{{ define "app" }} @@ -114,6 +114,7 @@ button { {{ if .Error }}

Erreur: {{ .Error }}

{{ end }} {{ if .Result }}

{{ .Result }}

{{ end }} + diff --git a/ui/test.html b/ui/test.html deleted file mode 100644 index 7015968..0000000 --- a/ui/test.html +++ /dev/null @@ -1,3 +0,0 @@ -{{ define "test" }} -{{ . }} -{{ end }}