summaryrefslogtreecommitdiff
path: root/internal/daemon/daemon.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-14 10:01:43 +0300
committerPaul Buetow <paul@buetow.org>2026-04-14 10:01:43 +0300
commit4d9004ab31a6064af741fbb73758bd8844964c6f (patch)
tree38a7f09840b6cd8774ba5b4ce24b373d4cc1de26 /internal/daemon/daemon.go
parent385cc685ab8f5312225342c66d29aaa3bf008a45 (diff)
z2: HTTP report query aliases and Gemtext Content-Type
Accept Category, Metric, and OutputFormat as alternate query keys alongside category, metric, output-format. Serve Gemtext reports with text/gemini; assert Content-Type in daemon tests. Builds on y2 daemon GET /report reusing ParseReportQuery and WriteReports. Made-with: Cursor
Diffstat (limited to 'internal/daemon/daemon.go')
-rw-r--r--internal/daemon/daemon.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/daemon/daemon.go b/internal/daemon/daemon.go
index 4e2402f..a4b1a3e 100644
--- a/internal/daemon/daemon.go
+++ b/internal/daemon/daemon.go
@@ -101,6 +101,8 @@ func reportContentType(f goprecords.OutputFormat) string {
switch f {
case goprecords.FormatMarkdown:
return "text/markdown; charset=utf-8"
+ case goprecords.FormatGemtext:
+ return "text/gemini; charset=utf-8"
default:
return "text/plain; charset=utf-8"
}