Merge branch 'main' into feat/new-create-customer
This commit is contained in:
@@ -9,11 +9,10 @@ import { handleGetPlan } from "./handlers/handleGetPlan.js";
|
|||||||
import { handleGetPlanDeleteInfo } from "./handlers/handleGetPlanDeleteInfo.js";
|
import { handleGetPlanDeleteInfo } from "./handlers/handleGetPlanDeleteInfo.js";
|
||||||
import { handleListPlans } from "./handlers/handleListPlans.js";
|
import { handleListPlans } from "./handlers/handleListPlans.js";
|
||||||
import { handleMigrateProductV2 } from "./handlers/handleMigrateProductV2.js";
|
import { handleMigrateProductV2 } from "./handlers/handleMigrateProductV2.js";
|
||||||
import { handlePlanHasCustomers } from "./handlers/handlePlanHasCustomers.js";
|
|
||||||
import { handleUpdatePlan } from "./handlers/handleUpdateProduct/handleUpdatePlan.js";
|
import { handleUpdatePlan } from "./handlers/handleUpdateProduct/handleUpdatePlan.js";
|
||||||
|
|
||||||
export const expressProductRouter = express.Router();
|
export const expressProductRouter = express.Router();
|
||||||
expressProductRouter.get("/:product_id/has_customers", handlePlanHasCustomers);
|
|
||||||
|
|
||||||
export const honoProductBetaRouter = new Hono<HonoEnv>();
|
export const honoProductBetaRouter = new Hono<HonoEnv>();
|
||||||
honoProductBetaRouter.get("", ...handleListPlans);
|
honoProductBetaRouter.get("", ...handleListPlans);
|
||||||
@@ -37,6 +36,7 @@ honoProductRouter.delete("/:product_id", ...handleDeleteProductHono);
|
|||||||
honoProductRouter.post("/:product_id/copy", ...handleCopyProductV2);
|
honoProductRouter.post("/:product_id/copy", ...handleCopyProductV2);
|
||||||
|
|
||||||
// Info before deleting plan
|
// Info before deleting plan
|
||||||
|
honoProductRouter.get("/:product_id/has_customers", ...handlePlanHasCustomersV2);
|
||||||
honoProductRouter.post(
|
honoProductRouter.post(
|
||||||
"/:product_id/has_customers",
|
"/:product_id/has_customers",
|
||||||
...handlePlanHasCustomersV2,
|
...handlePlanHasCustomersV2,
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ export const MainSidebar = () => {
|
|||||||
icon: <CubeIcon size={16} weight="fill" />,
|
icon: <CubeIcon size={16} weight="fill" />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Plan Features",
|
title: "Features",
|
||||||
value: "features",
|
value: "features",
|
||||||
icon: <LegoIcon size={16} weight="fill" />,
|
icon: <LegoIcon size={16} weight="fill" />,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user