From cb61b8e34942e661a394069302cd39827c92ae33 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sun, 5 Jan 2025 17:17:52 -0800 Subject: add json route --- api/template/template.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'api/template') diff --git a/api/template/template.go b/api/template/template.go index 9b43a42..4e0d4f9 100644 --- a/api/template/template.go +++ b/api/template/template.go @@ -65,7 +65,9 @@ func TemplateContinuation(path string, showBase bool) types.Continuation { return failure(context, req, resp) } - resp.Header().Set("Content-Type", "text/html") + if showBase { + resp.Header().Set("Content-Type", "text/html") + } resp.Write(html.Bytes()) return success(context, req, resp) } -- cgit v1.2.3-70-g09d2