boussole-pluss/frontend/repositories/questionRepository.ts

14 lines
356 B
TypeScript
Raw Normal View History

2022-10-07 14:15:53 +00:00
import {RestResponse} from "~/repositories/models/rest-response.model";
import {Question} from "~/repositories/models/question.model";
import {$axios} from "~/utils/api";
export default {
findAllByAxeId(axeId: number) {
return $axios.get<RestResponse<Question>>("/questions/search/byAxeId", {
params: {
id: axeId
}
});
}
}