Conflict resolution

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
This commit is contained in:
Rahul Rudragoudar
2019-06-09 14:04:25 +05:30
parent b9ef0c6d2e
commit 7c7285b9f7
4 changed files with 81 additions and 1 deletions

9
client/script.js Normal file
View File

@@ -0,0 +1,9 @@
document.getElementById("reg-btn").addEventListener("click", function(){
var email = document.getElementById("email").value;
var url = window.location.origin+"/v1/token?email="+email
fetch(url)
.then(res => res.json())
.then((data) => {
document.getElementById("token").innerHTML = "SECRET "+data.token;
})
})