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:
+3
-1
@@ -27,7 +27,9 @@ export const SignupPage: React.FC<SignupPageProps> = ({ 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