You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
474 B
15 lines
474 B
import { EXERCICES } from "@/api/endpoints";
|
|
import { Workout } from "@/model/Workout";
|
|
import { AbstractService } from "../abstract.service";
|
|
import { IExerciceInterface } from "./exercice.service.interface";
|
|
|
|
export class ExerciceAPIService
|
|
extends AbstractService
|
|
implements IExerciceInterface
|
|
{
|
|
async getExercices(): Promise<Workout[]> {
|
|
const data = await this.request(EXERCICES.GETALL);
|
|
return data.data.map((item: any) => Workout.fromJson(item));
|
|
}
|
|
}
|