diff options
Diffstat (limited to 'management/manager')
-rw-r--r-- | management/manager/manager.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/management/manager/manager.go b/management/manager/manager.go index 2830ba4..9a0ed19 100644 --- a/management/manager/manager.go +++ b/management/manager/manager.go @@ -4,10 +4,19 @@ import ( "bytes" "fmt" "html/template" + "net/http" "github.com/bosssauce/ponzu/management/editor" ) +// Mergeable allows external post content to be approved and published through +// the public-facing API +type Mergeable interface { + // Approve copies an external post to the internal collection and triggers + // a re-sort of its content type posts + Approve(req *http.Request) error +} + const managerHTML = ` <div class="card editor"> <form method="post" action="/admin/edit" enctype="multipart/form-data"> |