Fixed registering

This commit is contained in:
Luna 2021-07-26 16:33:22 -07:00
parent 8ea1299220
commit dfe57f518a

View file

@ -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',