diff options
| author | Alexander Kavon <hawk@alexkavon.com> | 2023-11-27 17:52:06 -0500 |
|---|---|---|
| committer | Alexander Kavon <hawk@alexkavon.com> | 2023-11-27 17:52:06 -0500 |
| commit | 21fb29d0eec71f3dd7c12e260af5925d452b238f (patch) | |
| tree | 5252b9d0b07a0aa64de2b20680c0ef4283433143 /src/auth/routes.go | |
| parent | 1d05f918887e9ba4576149513e5df0bb57e6bd72 (diff) | |
template files for registration page, updated cwd handling, included cwd and config file path in conf struct
Diffstat (limited to 'src/auth/routes.go')
| -rw-r--r-- | src/auth/routes.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/auth/routes.go b/src/auth/routes.go index 796d123..4f161de 100644 --- a/src/auth/routes.go +++ b/src/auth/routes.go @@ -25,7 +25,7 @@ func Register(s *server.Server) http.HandlerFunc { if err != nil { log.Fatal(err) } - tmpl := template.Must(template.ParseFiles(cwd + "/views/templates/main.tmpl.html")) - tmpl.Execute(w, nil) + tmpl := template.Must(template.ParseFiles(cwd+"/ui/templates/base.tmpl.html", cwd+"/ui/pages/auth/register.tmpl.html")) + tmpl.ExecuteTemplate(w, "base", nil) } } |
