mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-06-10 01:24:20 +02:00
20 lines
555 B
TypeScript
20 lines
555 B
TypeScript
import getExpressAccessors from "./expressAccessors"
|
|
import {
|
|
PreVolunteer,
|
|
PreVolunteerWithoutId,
|
|
translationPreVolunteer,
|
|
} from "../../services/preVolunteers"
|
|
|
|
const { listGetRequest, getRequest, setRequest, addRequest } = getExpressAccessors<
|
|
PreVolunteerWithoutId,
|
|
PreVolunteer
|
|
>("PreVolunteers", new PreVolunteer(), translationPreVolunteer)
|
|
|
|
export const preVolunteerListGet = listGetRequest()
|
|
|
|
export const preVolunteerGet = getRequest()
|
|
|
|
export const preVolunteerAdd = addRequest()
|
|
|
|
export const preVolunteerSet = setRequest()
|