Last active
June 26, 2020 13:28
-
-
Save basilesportif/4a4660ff7f7959b430049468f3c5b056 to your computer and use it in GitHub Desktop.
Simplest Possible Login on fake~zod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log("timluc"); | |
const login = async () => { | |
const pass = 'lidlut-tabwed-pillex-ridrup'; | |
const res = await fetch('http://localhost/~/login', { | |
method: 'POST', | |
body: `password=${pass}` | |
}) | |
console.log(res); | |
}; | |
login(); | |
/* serve from an HTML file | |
put HTML and JS in /app/channel-playground | |
|commit | |
:file-server &file-server-action [%serve-dir /'channel-playground' /app/channel-playground %.y] | |
navigate to http://localhost/channel-playground/index.html | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment