pis #2
@ -74,7 +74,7 @@ async function isRegistered() { // Check if a device is registered, returns BOOL
|
|||||||
async function register() { // Registers a device by sending POST request to API Server
|
async function register() { // Registers a device by sending POST request to API Server
|
||||||
if (! await isRegistered()) {
|
if (! await isRegistered()) {
|
||||||
showLoading()
|
showLoading()
|
||||||
let url = `${window.location.origin}/api/v1/auth/request`;
|
let url = `${window.location.origin}/api/v1/register/request`;
|
||||||
let email = document.getElementById("eml").textContent
|
let email = document.getElementById("eml").textContent
|
||||||
let res = await fetch(url, {
|
let res = await fetch(url, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
Reference in New Issue
Block a user