Changed codeserver to https

This commit is contained in:
2022-05-13 12:03:15 -04:00
parent ad62a7804e
commit a3d77979f9

View File

@@ -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();
}, },
}, },