diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2025-01-05 17:17:52 -0800 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2025-01-05 17:17:52 -0800 |
commit | cb61b8e34942e661a394069302cd39827c92ae33 (patch) | |
tree | b409465796e3d19b2bcbfb686717041ae7661035 /templates/updates.json.tmpl | |
parent | 604d4981f29470cd3c28692a79831f405db1eef2 (diff) | |
download | whois-cb61b8e34942e661a394069302cd39827c92ae33.tar.gz whois-cb61b8e34942e661a394069302cd39827c92ae33.zip |
add json route
Diffstat (limited to 'templates/updates.json.tmpl')
-rw-r--r-- | templates/updates.json.tmpl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/updates.json.tmpl b/templates/updates.json.tmpl new file mode 100644 index 0000000..529a2e0 --- /dev/null +++ b/templates/updates.json.tmpl @@ -0,0 +1,3 @@ +{{ define "content" }} +[{{ range $i, $update := .Updates }}{{ if $i }},{{ end }}{"name": "{{$update.Name}}", "time": "{{$update.Time.Format "2006-01-02T15:04:05.000Z"}}"}{{ end }}] +{{ end }}
\ No newline at end of file |