Skip to content

Instantly share code, notes, and snippets.

@techomoro
Created October 8, 2021 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techomoro/a72dac87f328aecfa95c4eefc3a236e0 to your computer and use it in GitHub Desktop.
Save techomoro/a72dac87f328aecfa95c4eefc3a236e0 to your computer and use it in GitHub Desktop.
// 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