Commit b8e351e7 authored by Jiawen Lyu's avatar Jiawen Lyu

http 429

parent 08a018b5
......@@ -10,6 +10,25 @@ export default WrappedComponent => {
};
}
componentDidMount() {
// this.props.logins.map(login => {
// fetch(`https://cors-anywhere.herokuapp.com/https://webapplis.utc.fr/Edt_ent_rest/myedt/result/?login=${login}`)
// .then(res => res.json())
// .then(
// (result) => {
// this.setState({
// isLoaded: true,
// data: result,
// login: login
// });
// },
// (error) => {
// this.setState({
// isLoaded: true,
// error
// });
// }
// )
// })
fetch(`https://cors-anywhere.herokuapp.com/https://webapplis.utc.fr/Edt_ent_rest/myedt/result/?login=${this.props.logins[0]}`)
.then(res => res.json())
.then(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment