~mika/www.m1kadev.nl

ref: 7396766ff9b6cae5c4aa4103853c899943362bb9 www.m1kadev.nl/scripts/fetch-greet.js -rw-r--r-- 353 bytes
7396766f — m1ka add compression to nginx config in prod 2 months ago
                                                                                
1
2
3
4
5
6
7
// TOOD: proper CORS-ing on api.m1kadev.bl
addEventListener("DOMContentLoaded", async ev => {
    const greetElement = document.getElementById("greet");
    const request = await fetch("https://api.m1kadev.nl/greet");
    const repsonse = await request.json();
    greetElement.innerHTML = repsonse.qoute; // this is misspelled in the prod api LMAAO
});