Fixed registering
This commit is contained in:
		
							parent
							
								
									dfe57f518a
								
							
						
					
					
						commit
						5b80b2a819
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -52,7 +52,7 @@ form.addEventListener("submit", async function (event) { | ||||||
| //CHECKS IF A USERNAME IS TAKEN
 | //CHECKS IF A USERNAME IS TAKEN
 | ||||||
| async function isUnameTaken() { | async function isUnameTaken() { | ||||||
| 
 | 
 | ||||||
|   const response = await fetch(`../api/users/${uname}/`); |   const response = await fetch(`/api/users/${uname}/`); | ||||||
|   const isTaken = await response.json(); |   const isTaken = await response.json(); | ||||||
| 
 | 
 | ||||||
|   //YES THIS IS CONFUSING I KNOW.
 |   //YES THIS IS CONFUSING I KNOW.
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue