getEndpoint
This commit is contained in:
parent
72793e17a0
commit
1ecbf4f10c
|
|
@ -139,7 +139,7 @@ class AppLoader extends types_1.AppLoader {
|
|||
return this.dbStore;
|
||||
}
|
||||
getEndpoints() {
|
||||
const endpoints = require(`${this.path}/lib/endpoints/index`);
|
||||
const endpoints = require(`${this.path}/lib/endpoints/index`).default;
|
||||
return endpoints;
|
||||
}
|
||||
startWatchers() {
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@ export class AppLoader<ED extends EntityDict & BaseEntityDict, Cxt extends Async
|
|||
}
|
||||
|
||||
getEndpoints(): Record<string, Endpoint<ED, Cxt>> {
|
||||
const endpoints = require(`${this.path}/lib/endpoints/index`);
|
||||
const endpoints = require(`${this.path}/lib/endpoints/index`).default;
|
||||
return endpoints;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue