Created
May 11, 2020 21:29
-
-
Save orangewolf/fcdfd6ca137e50fd53242ac6f8a82e2a to your computer and use it in GitHub Desktop.
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
let token = "FAKE" // Get the token from local storage | |
let headers = { 'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': `Bearer ${token}`} | |
fetch("http://localhost:3000/admin/users", {headers: headers}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment