diff options
Diffstat (limited to 'content/item.go')
-rw-r--r-- | content/item.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/content/item.go b/content/item.go index 046ed04..cbf38af 100644 --- a/content/item.go +++ b/content/item.go @@ -55,6 +55,16 @@ func (i *Item) AfterDelete(req *http.Request) error { return nil } +// BeforeReject is a no-op to ensure structs which embed Item implement Hookable +func (i *Item) BeforeReject(req *http.Request) error { + return nil +} + +// AfterReject is a no-op to ensure structs which embed Item implement Hookable +func (i *Item) AfterReject(req *http.Request) error { + return nil +} + // Sluggable makes a struct locatable by URL with it's own path // As an Item implementing Sluggable, slugs may overlap. If this is an issue, // make your content struct (or one which imbeds Item) implement Sluggable |