import axios from "axios"; import baseUrl from "./baseUrl"; import { PostType } from "../types"; export const posting = async (post: PostType) => { const { data } = await axios.post(`${baseUrl}/posts/`, post); return data; };