-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(shop-adapter-oxid): add option to provide custom paths for endpo…
…ints
- Loading branch information
Jan
committed
Jan 25, 2023
1 parent
14f6829
commit fc5f637
Showing
7 changed files
with
66 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
export const USER_LOGIN = '/index.php?cl=MakairaUserController&fnc=login' | ||
export const USER_GET_CURRENT = | ||
'/index.php?cl=MakairaUserController&fnc=getCurrentLoggedInUser' | ||
export const USER_LOGOUT = '/index.php?cl=MakairaUserController&fnc=logout' | ||
import { OxidPaths } from './types' | ||
|
||
export const CART_GET = '/index.php?cl=MakairaCartController&fnc=getCartItems' | ||
export const CART_ADD = | ||
'/index.php?cl=MakairaCartController&fnc=addProductToCart' | ||
export const CART_REMOVE = | ||
'/index.php?cl=MakairaCartController&fnc=removeCartItem' | ||
export const CART_UPDATE = | ||
'/index.php?cl=MakairaCartController&fnc=updateCartItem' | ||
|
||
export const REVIEW_GET = '/index.php?cl=MakairaReviewController&fnc=getReviews' | ||
export const REVIEW_CREATE = | ||
'/index.php?cl=MakairaReviewController&fnc=createReview' | ||
export const PATHS: OxidPaths = { | ||
USER_LOGIN: '/index.php?cl=MakairaUserController&fnc=login', | ||
USER_GET_CURRENT: | ||
'/index.php?cl=MakairaUserController&fnc=getCurrentLoggedInUser', | ||
USER_LOGOUT: '/index.php?cl=MakairaUserController&fnc=logout', | ||
CART_GET: '/index.php?cl=MakairaCartController&fnc=getCartItems', | ||
CART_ADD: '/index.php?cl=MakairaCartController&fnc=addProductToCart', | ||
CART_REMOVE: '/index.php?cl=MakairaCartController&fnc=removeCartItem', | ||
CART_UPDATE: '/index.php?cl=MakairaCartController&fnc=updateCartItem', | ||
REVIEW_GET: '/index.php?cl=MakairaReviewController&fnc=getReviews', | ||
REVIEW_CREATE: '/index.php?cl=MakairaReviewController&fnc=createReview', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters