wip: Construct API
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
export class APIController {
|
||||
#endpoints;
|
||||
|
||||
constructor(endpoints) {
|
||||
if (this.constructor === APIController)
|
||||
throw new Error("Cannot instantiate abstract class 'APIController'");
|
||||
this.#endpoints = endpoints;
|
||||
}
|
||||
|
||||
get endpoints() {
|
||||
return this.#endpoints;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user