Fixed registering
This commit is contained in:
parent
8ea1299220
commit
dfe57f518a
1 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ form.addEventListener("submit", async function (event) {
|
|||
//CHECKS IF A USERNAME IS TAKEN
|
||||
async function isUnameTaken() {
|
||||
|
||||
const response = await fetch(`api/users/${uname}/`);
|
||||
const response = await fetch(`../api/users/${uname}/`);
|
||||
const isTaken = await response.json();
|
||||
|
||||
//YES THIS IS CONFUSING I KNOW.
|
||||
|
@ -67,7 +67,7 @@ async function isUnameTaken() {
|
|||
|
||||
async function register() {
|
||||
let sendRegisterInfo = { "name": uname, "pin": pin, "pronouns": pronouns }
|
||||
const response = await fetch('/api/register/', {
|
||||
const response = await fetch('../api/register/', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
|
Loading…
Reference in a new issue