2025SELab2-project-Dwengo/frontend/src/services/api-client/endpoints/post-endpoint.ts
Gerald Schmittinger 728b04c9d8 feat(frontend): Functionaliteit om leerobjecten te tonen toegevoegd.
Hiervoor ook de state management geherstructureerd.
2025-03-24 21:13:46 +01:00

9 lines
372 B
TypeScript

import {type Params, RestEndpoint} from "@/services/api-client/endpoints/rest-endpoint.ts";
export class PostEndpoint<PP extends Params, QP extends Params, B, R> extends RestEndpoint<PP, QP, B, R> {
readonly method = "POST";
public post(pathParams: PP, queryParams: QP, body: B): Promise<R> {
return super.request(pathParams, queryParams, body);
}
}