@wocart/storefront / index / STOREFRONT_API_PATHS
Variable: STOREFRONT_API_PATHS
constSTOREFRONT_API_PATHS:object
Where a theme mounts each of createStorefrontRoutes' routes
(src/pages/api/…), and where its browser scripts call them: one table,
keyed like StorefrontRoutes, so the route files and the scripts never
drift. Defaults, not requirements: every browser helper still takes its
endpoint. :wilayaId and :productId mark a route's one parameter.
orderStatus has no path here: a theme follows an order through its
orderStatus action, not a route.
Type Declaration
abandonedConvert
readonlyabandonedConvert:"/api/abandoned/convert"
abandonedUpsert
readonlyabandonedUpsert:"/api/abandoned/upsert"
cartValidate
readonlycartValidate:"/api/cart/validate"
communes
readonlycommunes:"/api/communes/:wilayaId"
otpSend
readonlyotpSend:"/api/otp/send"
otpVerify
readonlyotpVerify:"/api/otp/verify"
reviewEligibility
readonlyreviewEligibility:"/api/reviews/eligibility"
reviewsList
readonlyreviewsList:"/api/reviews/:productId"
reviewSubmit
readonlyreviewSubmit:"/api/reviews/submit"
reviewUpload
readonlyreviewUpload:"/api/reviews/upload"