Changed codeserver to https
This commit is contained in:
@@ -121,7 +121,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
async runCode() {
|
async runCode() {
|
||||||
this.data = [];
|
this.data = [];
|
||||||
let res = await fetch("http://jslightham.com:8000/run/run", {
|
let res = await fetch("https://jslightham.com:8000/run/run", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
@@ -152,7 +152,7 @@ export default {
|
|||||||
return highlight(code, languages.js); // languages.<insert language> to return html with markup
|
return highlight(code, languages.js); // languages.<insert language> to return html with markup
|
||||||
},
|
},
|
||||||
async getLanguages() {
|
async getLanguages() {
|
||||||
let res = await fetch("http://jslightham:8000/run/languages");
|
let res = await fetch("https://jslightham:8000/run/languages");
|
||||||
this.languages = await res.json();
|
this.languages = await res.json();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user