Advertisement
BearSharkN

API - Organix

Dec 6th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. import Axios from 'axios';
  2.  
  3. export const api = Axios.create({
  4. baseURL: "http://localhost:5000/api" ,
  5. headers: {
  6. "Content-Type" : "application/json",
  7. "Authorization" : "Bearer " + localStorage.getItem("usuario-organix")
  8. }
  9. });
  10.  
  11.  
  12. export const apiFormData = Axios.create({
  13. baseURL: "http://localhost:5000/api" ,
  14. headers: {
  15. "Authorization" : "Bearer " + localStorage.getItem("usuario-organix")
  16. }
  17. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement