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