import HttpService from '../Http.service';
class TutorialService {
static getAll() {
return HttpService
.get('api/tutorials')
.then((resp) => resp.json());
}
static getInfo(tutorialName: string) {
return HttpService
.get(`api/tutorials/${tutorialName}`)
.then((resp) => resp.json());
}
static getProgress(tutorialName: string) {
return HttpService
.get(`api/tutorials/${tutorialName}/progress`)
.then((resp) => resp.json());
}
}
export default TutorialService;