clay / amphora

Middleware for Express that composes components into renderable pages
https://claycms.gitbooks.io/amphora/
MIT License
31 stars 23 forks source link

Feature: Sending a DELETE request to a uri optionally does not unpublish the page #610

Closed zonika closed 6 years ago

zonika commented 6 years ago

Now, DELETEs to the _uris route kick off a page unpublish event. This is great for most use cases, except when multiple uris exist for one page. For example, we create a URI for the amp url of an article when the article is published, and we need to delete it when the article is unpublished. Now, sending a delete request to the amp url's uri kicks off an unpublish event even though this request is only really sent after the page has already been unpublished. Ideally there would be a query param available for delete requests that allows one to just delete the uri from the db without setting off the entire unpublish chain.