Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

UN-2581 [FEAT] Support for organization-specific subscription plans in Unstract (#1409)

Athul6291d62232fb
diff --git a/frontend/src/routes/Router.jsx b/frontend/src/routes/Router.jsx
index fc7e7b508..104a3c52f 100644
--- a/frontend/src/routes/Router.jsx
+++ b/frontend/src/routes/Router.jsx
@@ -22,6 +22,7 @@ let SpsUpload;
let PaymentSuccessful;
let SelectProduct;
let UnstractSubscriptionEndPage;
+let CustomPlanCheckoutPage;
try {
SimplePromptStudioHelper =
require("../plugins/simple-prompt-studio/SimplePromptStudioHelper.jsx").SimplePromptStudioHelper;
@@ -71,6 +72,13 @@ try {
// Do nothing, Not-found Page will be triggered.
}
+try {
+ CustomPlanCheckoutPage =
+ require("../plugins/unstract-subscription/pages/CustomPlanCheckoutPage.jsx").CustomPlanCheckoutPage;
+} catch (err) {
+ // Do nothing, Not-found Page will be triggered.
+}
+
try {
PaymentSuccessful =
require("../plugins/payment-successful/PaymentSuccessful.jsx").PaymentSuccessful;
@@ -133,6 +141,12 @@ function Router() {
{PaymentSuccessful && (
<Route path="/payment/success" element={<PaymentSuccessful />} />
)}
+ {CustomPlanCheckoutPage && (
+ <Route
+ path="/subscription/custom"
+ element={<CustomPlanCheckoutPage />}
+ />
+ )}
<Route path="" element={<RequireAuth />}>
{MainAppRoute}
{llmWhispererRouter && (