mirror of
https://github.com/KevinMidboe/planetposen.git
synced 2026-01-05 17:05:43 +00:00
Api endpoints for fetching shema for product and variation.
This commit is contained in:
@@ -46,8 +46,14 @@ const addNewProduct = (req, res) => {
|
||||
.then(resp => res.send(resp))
|
||||
}
|
||||
|
||||
const getProductSchema = (req, res) => {
|
||||
return products.productSchema()
|
||||
.then(schema => res.json(schema))
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
allProducts,
|
||||
productBySlug,
|
||||
addNewProduct
|
||||
addNewProduct,
|
||||
getProductSchema
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user