Created
April 30, 2020 00:55
-
-
Save eduardopc/23852e18c17d8a51dfeb1a9610f2e62b to your computer and use it in GitHub Desktop.
This file contains 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
import 'dotenv/config'; | |
import axios from 'axios'; | |
const baseUrl = `http://localhost:${process.env.MOCK_SERVER_PORT}`; | |
const fetchCharacters = async () => { | |
return await axios.get(`${baseUrl}/characters`); | |
}; | |
module.exports = { | |
fetchCharacters | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment