add formatting to reports
Some checks are pending
CI / Lint (push) Waiting to run
CI / Test (push) Waiting to run
CI / End-to-End (push) Waiting to run
CI / Publish Docker (push) Blocked by required conditions
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-27 11:41:09 +10:00
parent a18cca1f0e
commit 78e1da3149
5 changed files with 262 additions and 5 deletions

View File

@@ -31,7 +31,8 @@ func New(logger *slog.Logger, database db.Database, buildTime string, sha1ver st
// temporary endpoint
//mux.HandleFunc("/api/cleanup/updates", h.UpdateCleanup)
mux.HandleFunc("/api/report/download", h.ReportDownload)
mux.HandleFunc("/api/report/inventory", h.InventoryReportDownload)
mux.HandleFunc("/api/report/updates", h.UpdateReportDownload)
return middleware.NewLoggingMiddleware(logger, mux)
}