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