diff --git a/frontend/src/api/connections.ts b/frontend/src/api/connections.ts index a341377..f633f47 100644 --- a/frontend/src/api/connections.ts +++ b/frontend/src/api/connections.ts @@ -1,11 +1,19 @@ -import { apiFetch } from './client' -import type { AuthResponse, ConnectionStatus, LoginRequest, ServiceType } from '../types/connection' +import { apiFetch } from "./client"; +import type { + AuthResponse, + ConnectionStatus, + LoginRequest, + ServiceType, +} from "../types/connection"; export const login = (req: LoginRequest) => - apiFetch('/login', { method: 'POST', body: JSON.stringify(req) }) + apiFetch("/login", { + method: "POST", + body: JSON.stringify(req), + }); export const getStatuses = () => - apiFetch('/connections/status') + apiFetch("/connections/status"); export const logout = (serviceType: ServiceType) => - apiFetch(`/connections/${serviceType}`, { method: 'DELETE' }) + apiFetch(`/connections/${serviceType}`, { method: "DELETE" });