Created
November 11, 2020 23:45
-
-
Save blogcacanid/39f8c29dd3ae923136704294a1ae85cc to your computer and use it in GitHub Desktop.
user.service.js Authentication JWT React JS Lumen 7
This file contains hidden or 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
import axios from "axios"; | |
// For Lumen 7 back-end | |
const API_URL = "http://localhost:8000/api/test/"; | |
// for Node.js Express back-end | |
// const API_URL = "http://localhost:9090/api/test/"; | |
const getPublicContent = () => { | |
return axios.get(API_URL + "all"); | |
}; | |
export default { | |
getPublicContent, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment