Skip to content

Commit c1e3f8a

Browse files
committed
1 parent 5969097 commit c1e3f8a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

adminforth/commands/createPlugin/templates/index.ts.hbs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export default class {{pluginName}} extends AdminForthPlugin {
99
constructor(options: PluginOptions) {
1010
super(options, import.meta.url);
1111
this.options = options;
12+
this.shouldHaveSingleInstancePerWholeApp = () => false;
1213
}
1314

1415
async modifyResourceConfig(adminforth: IAdminForth, resourceConfig: AdminForthResource) {
@@ -27,10 +28,6 @@ export default class {{pluginName}} extends AdminForthPlugin {
2728
return `single`;
2829
}
2930

30-
shouldHaveSingleInstancePerWholeApp(): boolean {
31-
return false;
32-
}
33-
3431
setupEndpoints(server: IHttpServer) {
3532
server.endpoint({
3633
method: 'POST',

0 commit comments

Comments
 (0)