Skip to content

Commit

Permalink
feature: add supportsPut meta data to paths that have put handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
sbender9 committed Sep 19, 2024
1 parent 717f8f0 commit 9aeca1c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/interfaces/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,21 @@ module.exports = (theApp: any) => {
appCopy.getDataDirPath = () => dirForPluginId(plugin.id)

appCopy.registerPutHandler = (context, aPath, callback, source) => {
appCopy.handleMessage(plugin.id, {
updates: [
{
meta: [
{
path: aPath,
value: {
supportsPut: true
}
}
]
}
]
})

onStopHandlers[plugin.id].push(
app.registerActionHandler(context, aPath, source || plugin.id, callback)
)
Expand Down

0 comments on commit 9aeca1c

Please sign in to comment.