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:
Oliver Windall Juhl
2020-09-09 15:22:57 +02:00
committed by GitHub
parent 9030ae4c36
commit 3de1e6dd4a
33 changed files with 6946 additions and 0 deletions
@@ -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(