diff --git a/examples/app/custom-plugin.ts b/examples/app/custom-plugin.ts index 4dcc92fef6..e44650559a 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) {