Skip to content

Commit 53ddd53

Browse files
rename api endpoint params
# Conflicts: # config/development/params.toml # config/production/params.toml # config/staging/params.toml # layouts/partials/captcha.html
1 parent 70c94e5 commit 53ddd53

File tree

13 files changed

+26
-22
lines changed

13 files changed

+26
-22
lines changed

assets/js/cardpayments.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22

3-
const STRIPE_PHP_URL = BASE_API_URL + '/stripe/prepare_payment.php';
3+
const STRIPE_PHP_URL = LEGACY_API_URL + '/stripe/prepare_payment.php';
44

55
class OneTimePayment {
66

assets/js/const.template.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
"use strict";
22

3-
const BASE_API_URL = '{{ .Site.Params.baseApiUrl }}';
3+
const API_BASE_URL = '{{ .Site.Params.apiBaseURL }}';
4+
const LEGACY_API_URL = '{{ .Site.Params.legacyApiUrl }}';
45
const PADDLE_ENABLE_SANDBOX = {{ .Site.Params.paddleEnableSandbox }};
56
const PADDLE_VENDOR_ID = {{ .Site.Params.paddleVendorId }};
67
const PADDLE_DESKTOP_PRODUCT_IDS = {{ .Site.Params.paddleDesktopProductIds | jsonify }};
78
const PADDLE_ANDROID_PRODUCT_ID = {{ .Site.Params.paddleAndroidProductId }};
89
const PADDLE_HUB_SELF_HOSTED_SUBSCRIPTION_PLAN_ID = {{ .Site.Params.paddleHubSelfHostedSubscriptionPlanId }};
910
const PADDLE_HUB_MANAGED_SUBSCRIPTION_PLAN_ID = {{ .Site.Params.paddleHubManagedSubscriptionPlanId }};
1011
const PADDLE_PRICES_URL = '{{ .Site.Params.paddlePricesUrl }}';
11-
const STORE_API_URL = '{{ .Site.Params.storeApiUrl }}';
12+
const LEGACY_STORE_URL = '{{ .Site.Params.legacyStoreUrl }}';
1213
const STRIPE_PK = '{{ .Site.Params.stripePk }}';
1314
const STRIPE_PLANS = {{ .Site.Params.stripePlans | jsonify }};

assets/js/customerportal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22

3-
const REQUEST_CUSTOMER_PORTAL_URL = BASE_API_URL + '/stripe/request_customer_portal.php';
3+
const REQUEST_CUSTOMER_PORTAL_URL = LEGACY_API_URL + '/stripe/request_customer_portal.php';
44

55
class CustomerPortal {
66

assets/js/hubcontact.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22

3-
const REQUEST_HUB_CONTACT_URL = STORE_API_URL + '/hub/request-contact';
3+
const REQUEST_HUB_CONTACT_URL = LEGACY_STORE_URL + '/hub/request-contact';
44

55
class HubContact {
66

assets/js/hubdemo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22

3-
const REQUEST_HUB_DEMO_URL = STORE_API_URL + '/hub/request-demo';
3+
const REQUEST_HUB_DEMO_URL = LEGACY_STORE_URL + '/hub/request-demo';
44

55
class HubDemo {
66

assets/js/hubmanaged.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"use strict";
22

33
// requires newsletter.js
4-
const REQUEST_HUB_MANAGED_URL = STORE_API_URL + '/hub/request-managed';
5-
const VALIDATE_HUB_MANAGED_REQUEST_URL = STORE_API_URL + '/hub/validate-managed-request';
4+
const REQUEST_HUB_MANAGED_URL = LEGACY_STORE_URL + '/hub/request-managed';
5+
const VALIDATE_HUB_MANAGED_REQUEST_URL = LEGACY_STORE_URL + '/hub/validate-managed-request';
66

77
class HubManaged {
88

assets/js/hubsubscription.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"use strict";
22

3-
const BILLING_PORTAL_SESSION_URL = STORE_API_URL + '/hub/billing-portal-session';
4-
const CUSTOM_BILLING_URL = STORE_API_URL + '/hub/custom-billing';
5-
const GENERATE_PAY_LINK_URL = STORE_API_URL + '/hub/generate-pay-link';
6-
const MANAGE_SUBSCRIPTION_URL = STORE_API_URL + '/hub/manage-subscription';
7-
const UPDATE_PAYMENT_METHOD_URL = STORE_API_URL + '/hub/update-payment-method';
3+
const BILLING_PORTAL_SESSION_URL = LEGACY_STORE_URL + '/hub/billing-portal-session';
4+
const CUSTOM_BILLING_URL = LEGACY_STORE_URL + '/hub/custom-billing';
5+
const GENERATE_PAY_LINK_URL = LEGACY_STORE_URL + '/hub/generate-pay-link';
6+
const MANAGE_SUBSCRIPTION_URL = LEGACY_STORE_URL + '/hub/manage-subscription';
7+
const UPDATE_PAYMENT_METHOD_URL = LEGACY_STORE_URL + '/hub/update-payment-method';
88

99
class HubSubscription {
1010

assets/js/newsletter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22

3-
const SUBSCRIBE_NEWSLETTER_URL = BASE_API_URL + '/listmonk/subscribe.php';
3+
const SUBSCRIBE_NEWSLETTER_URL = LEGACY_API_URL + '/listmonk/subscribe.php';
44

55
class Newsletter {
66

assets/js/supportercert.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22

3-
const REQUEST_SUPPORTER_CERT_URL = STORE_API_URL + '/desktop/request-supporter-cert';
3+
const REQUEST_SUPPORTER_CERT_URL = LEGACY_STORE_URL + '/desktop/request-supporter-cert';
44

55
class SupporterCertificate {
66

config/development/params.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# API
2-
baseApiUrl: http://localhost
3-
storeApiUrl: http://localhost:8787/api
2+
apiBaseURL: http://localhost:3300
3+
legacyApiUrl: http://localhost
4+
legacyStoreUrl: http://localhost:8787/api
45

56
# UMAMI
67
umamiWebsiteId: 57a36f3a-bd97-4d8a-9563-0e8d39ddb20c

0 commit comments

Comments
 (0)