Created
November 9, 2020 06:26
-
-
Save blogcacanid/7e81700d8444f533888a415975f7ca1f to your computer and use it in GitHub Desktop.
user.service.js Authentication JWT Vue Lumen 7
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
import axios from 'axios'; | |
// for Lumen 7 back-end | |
const API_URL = 'http://localhost:8000/api/test/'; | |
// for Node.js back-end | |
// const API_URL = 'http://localhost:9090/api/test/'; | |
class UserService { | |
getPublicContent() { | |
return axios.get(API_URL + 'all'); | |
} | |
} | |
export default new UserService(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment