From 443ace020ad8b3ffd4ea407d39ab1814264456b8 Mon Sep 17 00:00:00 2001 From: Ian Wahbe Date: Fri, 15 Nov 2024 12:36:34 +0100 Subject: [PATCH] Add publisher version API --- themes/default/content/registry/api/v0/_content.gotmpl | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 themes/default/content/registry/api/v0/_content.gotmpl diff --git a/themes/default/content/registry/api/v0/_content.gotmpl b/themes/default/content/registry/api/v0/_content.gotmpl new file mode 100644 index 000000000..f8ff1b484 --- /dev/null +++ b/themes/default/content/registry/api/v0/_content.gotmpl @@ -0,0 +1,10 @@ +{{ range $package := .Site.Data.registry.packages }} +{{ $.AddResource (dict + "content" (dict + "mediaType" "application/json" + "value" (dict "version" $package.version | jsonify) + ) + "kind" "page" + "path" (printf "packages/%s/version" $package.name) +)}} +{{ end }}