From 8034957b3177568ce9af8f48f91970fcc248a013 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Fri, 17 Mar 2023 01:45:13 -0600 Subject: [PATCH] Update API endpoints to use apis.helena.express --- www/settings.js | 57 ++++++++++++++++++++++++++----------------------- 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/www/settings.js b/www/settings.js index 59d72fa..0187168 100644 --- a/www/settings.js +++ b/www/settings.js @@ -7,52 +7,55 @@ var SETTINGS = { apis: { // Dynamic text content updater - dynamicappcontent: "http://localhost/helena.express/apis/dynamicappcontent/", + dynamicappcontent: "https://apis.helena.express/v1/dynamicappcontent/", // Tracking - track: "http://localhost/helena.express/apis/track/", - trackmultiple: "http://localhost/helena.express/apis/trackmultiple/", + track: "https://apis.helena.express/v1/track/", + trackmultiple: "https://apis.helena.express/v1/trackmultiple/", // Shipping rates - rates: "http://localhost/helena.express/apis/rates/", + rates: "https://apis.helena.express/v1/rates/", // ZIP Code lookup - zipcodelookup: "http://localhost/helena.express/apis/zipcodelookup/", + zipcodelookup: "https://apis.helena.express/v1/zipcodelookup/", // Get appointment iframe URL - appointmentredirect: "http://localhost/helena.express/apis/appointmentredirect/", + appointmentredirect: "https://apis.helena.express/v1/appointmentredirect/", // Request home pickup - requestpickup: "http://localhost/helena.express/apis/requestpickup/", + requestpickup: "https://apis.helena.express/v1/requestpickup/", // Drop and Send - dropandsendlocations: "http://localhost/helena.express/apis/dropandsend/locations/", - dropandsendpickup: "http://localhost/helena.express/apis/dropandsend/requestpickup/", + dropandsendlocations: "https://apis.helena.express/v1/dropandsend/locations/", + dropandsendpickup: "https://apis.helena.express/v1/dropandsend/requestpickup/", // Fetch account data - getaccountinfo: "http://localhost/helena.express/apis/account/getinfo/", + getaccountinfo: "https://apis.helena.express/v1/account/getinfo/", // Fetch tracking numbers associated with account - gettrackingnumbers: "http://localhost/helena.express/apis/account/gettrackingnumbers/", + gettrackingnumbers: "https://apis.helena.express/v1/account/gettrackingnumbers/", // Account login/registration/onboarding endpoints - authorstartverify: "http://localhost/helena.express/apis/account/authorstartverify/", - verifyauthcode: "http://localhost/helena.express/apis/account/verifyauthcode/", - accountregister: "http://localhost/helena.express/apis/account/register/", + authorstartverify: "https://apis.helena.express/v1/account/authorstartverify/", + verifyauthcode: "https://apis.helena.express/v1/account/verifyauthcode/", + accountregister: "https://apis.helena.express/v1/account/register/", // Setup saved payment method - redirecttopaymentsetup: "http://localhost/helena.express/apis/account/redirecttopaymentsetup/", - finishpaymentsetup: "http://localhost/helena.express/apis/account/finishpaymentsetup/", + redirecttopaymentsetup: "https://apis.helena.express/v1/account/redirecttopaymentsetup/", + finishpaymentsetup: "https://apis.helena.express/v1/account/finishpaymentsetup/", // Send a telegram message - sendtelegram: "http://localhost/helena.express/apis/telegram", + sendtelegram: "https://apis.helena.express/v1/telegram/", // Fetch shop items - shopitems: "http://localhost/helena.express/apis/shop/items", + shopitems: "https://apis.helena.express/v1/shop/items/", // Create a shop order - shopbuy: "http://localhost/helena.express/apis/shop/buy", + shopbuy: "https://apis.helena.express/v1/shop/buy/", // Get receipts linked with account - getreceipts: "http://localhost/helena.express/apis/account/getreceipts", - getreceipt: "http://localhost/helena.express/apis/account/getreceipt", + getreceipts: "https://apis.helena.express/v1/account/getreceipts/", + getreceipt: "https://apis.helena.express/v1/account/getreceipt/", // Crypto: check balance and send transactions - walletbalance: "http://localhost/helena.express/apis/crypto/walletbalance", - getutxo: "http://localhost/helena.express/apis/crypto/getutxo", - broadcasttransaction: "http://localhost/helena.express/apis/crypto/broadcasttransaction", - cryptofees: "http://localhost/helena.express/apis/crypto/fees", + walletbalance: "https://apis.helena.express/v1/crypto/walletbalance/", + getutxo: "https://apis.helena.express/v1/crypto/getutxo/", + broadcasttransaction: "https://apis.helena.express/v1/crypto/broadcasttransaction/", + cryptofees: "https://apis.helena.express/v1/crypto/fees/", // Service area map - servicearea: "http://localhost/helena.express/apis/servicearea", + servicearea: "https://apis.helena.express/v1/servicearea/", // Trailer schedule/dates/times/locations trailerschedule: "https://helena.express/mobile/schedule.json", // Money order verification - moneyorderverify: "http://localhost/helena.express/apis/moneyorder/verify" + moneyorderverify: "https://apis.helena.express/v1/moneyorder/verify/", + // Label maker + label_rates: "https://apis.helena.express/v1/labelmaker/rates/", + label_purchase: "https://apis.helena.express/v1/labelmaker/purchase/" }, stripe_pubkey: "pk_test_51J6qFXCa1Fboir5UzPO3LCiMsVNiFP2lq4wR0dEcjJJVzAaJ3uRggDekZPB3qeYpMD3ayIYHKyD5sSn0IFLlEXMW001LqrvGSH", branding: {