We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5969097 commit c1e3f8aCopy full SHA for c1e3f8a
adminforth/commands/createPlugin/templates/index.ts.hbs
@@ -9,6 +9,7 @@ export default class {{pluginName}} extends AdminForthPlugin {
9
constructor(options: PluginOptions) {
10
super(options, import.meta.url);
11
this.options = options;
12
+ this.shouldHaveSingleInstancePerWholeApp = () => false;
13
}
14
15
async modifyResourceConfig(adminforth: IAdminForth, resourceConfig: AdminForthResource) {
@@ -27,10 +28,6 @@ export default class {{pluginName}} extends AdminForthPlugin {
27
28
return `single`;
29
30
- shouldHaveSingleInstancePerWholeApp(): boolean {
31
- return false;
32
- }
33
-
34
setupEndpoints(server: IHttpServer) {
35
server.endpoint({
36
method: 'POST',
0 commit comments