Created
October 8, 2021 09:45
-
-
Save techomoro/a72dac87f328aecfa95c4eefc3a236e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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