Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- axios
- .get(
- "http://localhost:8085/api/v1/users",
- {},
- {
- auth: {
- username: "sample@gmail.com",
- password: "pass@"
- }
- }
- )
- .then(resp => console.log(resp))
- .catch(err => console.log(err));
- axios({
- method: "get",
- baseURL: endpoint,
- auth: {
- username: "sample@gmail.com",
- password: "pass@"
- }
- })
- .then(resp => console.log(resp))
- .catch(err => console.log(err));
Add Comment
Please, Sign In to add comment