change engine mount point and base path in jsapp

This commit is contained in:
Rimian Perkins
2019-12-03 10:29:44 +11:00
parent 382fd4ac41
commit 08cbff0c1c
23 changed files with 29 additions and 28 deletions
@@ -3,7 +3,7 @@ import { ajax } from "discourse/lib/ajax";
export default Ember.Controller.extend({
actions: {
stripePaymentHandler(data) {
return ajax("/patrons/patrons", {
return ajax("/s/patrons", {
data,
method: "post"
}).catch(() => {
@@ -25,7 +25,7 @@ export default Ember.Controller.extend({
source: result.token.id
};
return ajax("/patrons/customers", {
return ajax("/s/customers", {
method: "post",
data: customerData
}).then(customer => {