Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Axios from "axios";
- const API_URL = "http://localhost:8080/instructors/Przemek/courses";
- class CourseDataService{
- retrieveDataFromApi(){
- return Axios.get('${API_URL}')
- }
- }
- export default new CourseDataService()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement