diff --git a/.idea/workspace.xml b/.idea/workspace.xml index d4aa9c6..9540c5a 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,9 +2,8 @@ - - + @@ -101,7 +100,7 @@ @@ -138,6 +144,7 @@ \ No newline at end of file diff --git a/src/App.js b/src/App.js index a4e1dc0..4f878d2 100644 --- a/src/App.js +++ b/src/App.js @@ -12,7 +12,7 @@ class App extends Component { async componentDidMount() { this.setState({ 'loading': true }); - const res = await axios.get('https://api.github.com/users'); + const res = await axios.get(`https://api.github.com/users?client_id=${process.env.REACT_APP_GITHUB_CLIENT_ID}&client_secret=${process.env.REACT_APP_GITHUB_CLIENT_SECRET}`); console.log(res.data); this.setState({ 'users':res.data, 'loading': false }); }