summaryrefslogtreecommitdiff
path: root/src/http/assets.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/assets.go')
-rw-r--r--src/http/assets.go20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/http/assets.go b/src/http/assets.go
index 5a47152..8c5ac7e 100644
--- a/src/http/assets.go
+++ b/src/http/assets.go
@@ -14,27 +14,9 @@ import (
)
func (a *api) managePostAssetsHandler() http.Handler {
-
tpl := a.mustParseBasedTpl("post-assets-manage.html")
-
return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
-
- ids, err := a.params.PostAssetStore.List()
-
- if err != nil {
- apiutil.InternalServerError(
- rw, r, fmt.Errorf("getting list of asset ids: %w", err),
- )
- return
- }
-
- tplPayload := struct {
- IDs []string
- }{
- IDs: ids,
- }
-
- a.executeTemplate(rw, r, tpl, tplPayload)
+ a.executeTemplate(rw, r, tpl, nil)
})
}