Cài đặt thành công tính năng người dùng đầu tiên phải đăng ký tài khoản để quản lí
This commit is contained in:
Vendored
+2
-1
@@ -19,7 +19,8 @@ export const SignupPage = ({ onBack, onSuccess }) => {
|
||||
}
|
||||
setIsLoading(true);
|
||||
try {
|
||||
const response = await fetch('http://localhost:3001/api/v1/auth/signup', {
|
||||
const API_BASE = `http://${window.location.hostname}:3001`;
|
||||
const response = await fetch(`${API_BASE}/api/v1/auth/signup`, {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({
|
||||
|
||||
Reference in New Issue
Block a user