Skip to content

Commit bc250c3

Browse files
committed
refactor(template): set root.html as the default layout to render for chi
1 parent fc54000 commit bc250c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/api/api.go.chi.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (t *Template) Render(w http.ResponseWriter, status int, name string, data a
6161
if len(layouts) > 0 {
6262
return tmpls.templates.ExecuteTemplate(w, layouts[0], dataMap)
6363
}
64-
return tmpls.templates.ExecuteTemplate(w, name, dataMap)
64+
return tmpls.templates.ExecuteTemplate(w, "Root.html", dataMap)
6565
}
6666

6767
// Start will run the API Server

0 commit comments

Comments
 (0)