feat(frontend): LearningObjectService en LearningPathService geïmplementeerd.
This commit is contained in:
parent
8b0fc4263f
commit
3c3fddb7d0
24 changed files with 375 additions and 84 deletions
10
frontend/src/services/api-client/endpoints/post-endpoint.ts
Normal file
10
frontend/src/services/api-client/endpoints/post-endpoint.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
import {type Params, RestEndpoint} from "@/services/api-client/endpoints/rest-endpoint.ts";
|
||||
import {RemoteResource} from "@/services/api-client/remote-resource.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): RemoteResource<R> {
|
||||
return super.request(pathParams, queryParams, body);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue