18 lines
472 B
Cheetah
18 lines
472 B
Cheetah
METADATA on <{{.Request.Host}}/{{.Paste.Key}}>:
|
|
|
|
TYPE: {{.Paste.Type}}
|
|
STATE: {{.Paste.State}}
|
|
{{if .Paste.TimeCreated.IsZero -}}
|
|
CREATED: undefined
|
|
{{else -}}
|
|
CREATED: {{.Paste.TimeCreated}}
|
|
{{end -}}
|
|
DELETE TOKEN: {{.CanDelete.String}}
|
|
|
|
{{if and (ne .Paste.State.String "deleted") .CanDelete.Bool}}
|
|
```
|
|
# To delete this {{.Paste.Type}}, execute:
|
|
curl --request "DELETE" "{{.Request.Host}}/{{.Paste.Key}}?deleteToken={{.Request.URL.Query.Get "deleteToken"}}"
|
|
```
|
|
{{end}}
|