feat: complete relative api route integration and container build

This commit is contained in:
Antigravity AI Agent
2026-05-13 07:50:15 +02:00
parent 606da6de97
commit 9d10fed38e
9 changed files with 13 additions and 11 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ export const GoogleConnectButton: React.FC<GoogleConnectButtonProps> = ({ ownerI
const handleConnect = async () => {
setIsLoading(true);
try {
const response = await fetch(`http://localhost:3005/api/auth/google/url?dentistId=${ownerId}`);
const response = await fetch(`/api/auth/google/url?dentistId=${ownerId}`);
const { url } = await response.json();
// Abrir em popup para manter o contexto
@@ -48,7 +48,7 @@ export const GoogleConnectButton: React.FC<GoogleConnectButtonProps> = ({ ownerI
setIsLoading(true);
try {
await fetch(`http://localhost:3005/api/auth/google/${ownerId}`, { method: 'DELETE' });
await fetch(`/api/auth/google/${ownerId}`, { method: 'DELETE' });
if (onStatusChange) onStatusChange();
} catch (error) {
console.error('Erro ao desconectar:', error);