mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-18 15:55:30 +00:00
24 lines
429 B
JavaScript
24 lines
429 B
JavaScript
class BaseModel {
|
|
constructor(APIClient){
|
|
this.client = APIClient;
|
|
}
|
|
|
|
get(endpoint, options){
|
|
return this.client.get(endpoint, options);
|
|
}
|
|
|
|
post(endpoint, options){
|
|
return this.client.post(endpoint, options);
|
|
}
|
|
|
|
put(endpoint, options){
|
|
return this.client.put(endpoint, options);
|
|
}
|
|
|
|
delete(endpoint, options){
|
|
return this.client.delete(endpoint, options);
|
|
}
|
|
};
|
|
|
|
module.exports = BaseModel;
|