Skip to content

Commit

Permalink
Add publisher version API
Browse files Browse the repository at this point in the history
  • Loading branch information
iwahbe committed Nov 15, 2024
1 parent 5323718 commit 443ace0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions themes/default/content/registry/api/v0/_content.gotmpl
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 443ace0

Please sign in to comment.