diff --git a/examples/app/custom-plugin.ts b/examples/app/custom-plugin.ts index 4dcc92fef..e44650559 100644 --- a/examples/app/custom-plugin.ts +++ b/examples/app/custom-plugin.ts @@ -36,7 +36,7 @@ class MyPlugin extends Plugin { return 'MyPlugin'; } async load() { - app.resource({ + this.app.resource({ name: 'test', actions: { async list(ctx) {