Skip to content

Instantly share code, notes, and snippets.

@blogcacanid
Created November 11, 2020 23: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 blogcacanid/39f8c29dd3ae923136704294a1ae85cc to your computer and use it in GitHub Desktop.
Save blogcacanid/39f8c29dd3ae923136704294a1ae85cc to your computer and use it in GitHub Desktop.
user.service.js Authentication JWT React JS Lumen 7
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