mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
19 lines
440 B
JavaScript
19 lines
440 B
JavaScript
const PluginAbstract = require('../../server/PluginAbstract')
|
|
|
|
class TestPlugin extends PluginAbstract {
|
|
constructor() {
|
|
super()
|
|
|
|
this.name = 'Test'
|
|
}
|
|
|
|
init(context) {
|
|
context.Logger.info('[TestPlugin] Test plugin loaded successfully')
|
|
}
|
|
|
|
async onAction(context, actionName, target, data) {
|
|
context.Logger.info('[TestPlugin] Test plugin onAction', actionName, target, data)
|
|
}
|
|
}
|
|
module.exports = new TestPlugin()
|