Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Fixed cart remove and user reset routes, added rest api routes

givanz1ab46d093707
diff --git a/config/app-routes.php b/config/app-routes.php
index 26e85cc..dba0929 100644
--- a/config/app-routes.php
+++ b/config/app-routes.php
@@ -35,7 +35,7 @@ return [
'/user/signup' => ['module' => 'user/signup/index'],
'/user/edit' => ['module' => 'user/edit/index'],
'/user/reset' => ['module' => 'user/reset/index'],
- '/user/reset/{token}/{username}' => ['module' => 'user/reset/reset'],
+ '/user/reset/{token}/{user}' => ['module' => 'user/reset/reset'],
//user dashboard
'/user/order-tracking' => ['module' => 'user/order-tracking/index'],
@@ -106,15 +106,17 @@ return [
//checkout
'/cart' => ['module' => 'cart/cart/index'],
+ '/cart/{cart_id}' => ['module' => 'cart/cart/index'],
'/cart/add/#product_id#' => ['module' => 'cart/cart/add'],
- '/cart/remove/#product_id#' => ['module' => 'cart/cart/remove'],
+ '/cart/remove/#key#' => ['module' => 'cart/cart/remove'],
'/cart/voucher' => ['module' => 'checkout/cart/voucher'],
- '/checkout/#product_id#' => ['module' => 'checkout/checkout/index'],
- '/checkout' => ['module' => 'checkout/checkout/index'],
- '/checkout/pay' => ['module' => 'checkout/pay'],
- '/checkout/confirm' => ['module' => 'checkout/confirm/index'],
- '/checkout/confirm/#id#' => ['module' => 'checkout/order/index'],
+ //'/checkout/#product_id#' => ['module' => 'checkout/checkout/index'],
+ '/checkout/pay' => ['module' => 'checkout/pay'],
+ '/checkout/confirm' => ['module' => 'checkout/confirm/index'],
+ '/checkout/confirm/{customer_order_id}' => ['module' => 'checkout/order/index'],
+ '/checkout' => ['module' => 'checkout/checkout/index'],
+ '/checkout/{cart_id}' => ['module' => 'checkout/checkout/index'],
//feeds
'/feed/{rss}' => ['module' => 'feed/index'],