Skip to content

Instantly share code, notes, and snippets.

@blogcacanid
Created November 9, 2020 06:26
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 blogcacanid/7e81700d8444f533888a415975f7ca1f to your computer and use it in GitHub Desktop.
Save blogcacanid/7e81700d8444f533888a415975f7ca1f to your computer and use it in GitHub Desktop.
user.service.js Authentication JWT Vue Lumen 7
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