const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
const require_controllers_stripe_controller = require('../controllers/stripe.controller.cjs');
let express = require("express");

//#region src/routes/stripe.routes.ts
const stripeRouter = (0, express.Router)();
const stripeRoute = "/api/stripe";
const baseURL = () => `${process.env.BACKEND_URL}${stripeRoute}`;
const getStripeRoutes = () => ({
	getPricing: {
		urlModel: "/pricing",
		url: `${baseURL()}/pricing`,
		method: "POST"
	},
	createSubscription: {
		urlModel: "/create-subscription",
		url: `${baseURL()}/create-subscription`,
		method: "POST"
	},
	cancelSubscription: {
		urlModel: "/cancel-subscription",
		url: `${baseURL()}/cancel-subscription`,
		method: "POST"
	}
});
stripeRouter.post(getStripeRoutes().getPricing.urlModel, require_controllers_stripe_controller.getPricing);
stripeRouter.post(getStripeRoutes().createSubscription.urlModel, require_controllers_stripe_controller.getSubscription);
stripeRouter.post(getStripeRoutes().cancelSubscription.urlModel, require_controllers_stripe_controller.cancelSubscription);

//#endregion
exports.getStripeRoutes = getStripeRoutes;
exports.stripeRoute = stripeRoute;
exports.stripeRouter = stripeRouter;
//# sourceMappingURL=stripe.routes.cjs.map