Hello,
I am adding a custom piece type as follows:
module.exports = {
extend: "apostrophe-pieces",
name: "product",
label: "Product",
pluralLabel: "Products",
}
added to app.js as follows:
products: {}
directory structure:
- products/
index.js (contains module.exports from above)
Add a product successfully, try to visit a url that seems like it ought to exist (/products/, /product/, /), and none of them work.
Am I overlooking some critical piece that enables the custom piece to be rendered from a URL?
Thanks,
Paul