Refactoring
This commit is contained in:
@@ -21,7 +21,7 @@ export default function AccountPage() {
|
||||
const handleLogin = async (e: React.FormEvent) => {
|
||||
e.preventDefault()
|
||||
try {
|
||||
const response = await fetch("http://localhost:8080/api/login", {
|
||||
const response = await fetch("http://localhost:8081/api/login", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
@@ -50,7 +50,7 @@ export default function AccountPage() {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
const response = await fetch("http://localhost:8080/api/register", {
|
||||
const response = await fetch("http://localhost:8081/api/register", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
|
||||
Reference in New Issue
Block a user