whois/templates/updates.json.tmpl
Elizabeth Hunt cb61b8e349
All checks were successful
continuous-integration/drone/push Build is passing
add json route
2025-01-05 17:17:52 -08:00

3 lines
190 B
Cheetah

{{ define "content" }}
[{{ range $i, $update := .Updates }}{{ if $i }},{{ end }}{"name": "{{$update.Name}}", "time": "{{$update.Time.Format "2006-01-02T15:04:05.000Z"}}"}{{ end }}]
{{ end }}