Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// helpers/backend_helper.js
import { get } from "./api_helper";
import * as url from "./url_helper";
//Post
export const getPosts = () => get(url.GET_POSTS);
//Post
export const getPostDetails = (id) =>
get(url.GET_POST_DETAILS, {
params: {
id: id,
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment