|
@@ -3,7 +3,6 @@
|
|
|
var app = new Vue({
|
|
|
el: '#vue-app',
|
|
|
data: {
|
|
|
- api_host : "http://192.241.167.183",
|
|
|
newsletter: {
|
|
|
email : '',
|
|
|
alert_class : 'alert-secondary',
|
|
@@ -58,7 +57,7 @@
|
|
|
var payload = { email: this.newsletter.email }
|
|
|
console.log("Subscribing to newsletter", payload);
|
|
|
var req = new XMLHttpRequest();
|
|
|
- req.open('POST', `${this.api_host}:3101/register`, true);
|
|
|
+ req.open('POST', `https://subscription.kairoscope.net/register`, true);
|
|
|
req.setRequestHeader('Content-Type', 'application/json');
|
|
|
var res = undefined;
|
|
|
req.onreadystatechange = function() {
|
|
@@ -131,7 +130,7 @@
|
|
|
this.contact.message.send_status = "sending";
|
|
|
var vm = this;
|
|
|
var req = new XMLHttpRequest();
|
|
|
- req.open('POST', `${this.api_host}:3102/receive`, true);
|
|
|
+ req.open('POST', `https://cusomer-feedback.kairoscope.net/receive`, true);
|
|
|
req.setRequestHeader('Content-Type', 'application/json');
|
|
|
req.onreadystatechange = function() {
|
|
|
if(req.status == 200) {
|
|
@@ -154,7 +153,7 @@
|
|
|
this.contact.feedback.send_status = "sending";
|
|
|
var vm = this;
|
|
|
var req = new XMLHttpRequest();
|
|
|
- req.open('POST', `${this.api_host}:3102/receive`, true);
|
|
|
+ req.open('POST', `https://cusomer-feedback.kairoscope.net/receive`, true);
|
|
|
req.setRequestHeader('Content-Type', 'application/json');
|
|
|
req.onreadystatechange = function() {
|
|
|
if(req.status == 200) {
|
|
@@ -177,7 +176,7 @@
|
|
|
this.contact.report.send_status = "sending";
|
|
|
var vm = this;
|
|
|
var req = new XMLHttpRequest();
|
|
|
- req.open('POST', `${this.api_host}:3102/receive`, true);
|
|
|
+ req.open('POST', `https://cusomer-feedback.kairoscope.net/receive`, true);
|
|
|
req.setRequestHeader('Content-Type', 'application/json');
|
|
|
req.onreadystatechange = function() {
|
|
|
if(req.status == 200) {
|