Update custom-plugin.ts

This commit is contained in:
chenos 2022-08-16 22:30:31 +08:00 committed by GitHub
parent 28b73d7143
commit 9b47ba2251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ class MyPlugin extends Plugin {
return 'MyPlugin';
}
async load() {
app.resource({
this.app.resource({
name: 'test',
actions: {
async list(ctx) {