feat(plugins): Adds add-on plugin
Adds an add-on plugin, that supports adding add-ons to line items in the cart
This commit is contained in:
committed by
GitHub
parent
9030ae4c36
commit
3de1e6dd4a
@@ -8,6 +8,12 @@ export default (app, container) => {
|
||||
|
||||
app.use("/carts", route)
|
||||
|
||||
// Inject plugin routes
|
||||
const routers = middlewareService.getRouters("store/carts")
|
||||
for (const router of routers) {
|
||||
route.use("/", router)
|
||||
}
|
||||
|
||||
route.get("/:id", middlewares.wrap(require("./get-cart").default))
|
||||
|
||||
route.post(
|
||||
|
||||
Reference in New Issue
Block a user