import { config } from "../config"; import axios from "axios"; export default async ( host: string, port: number, username: string, password: string ) => { try { const response = await axios.post(`${config.url}/database/node/create`, { host, port, username, password, }); return response.data; } catch (error) { console.error("Error in creating database node:", error); } };