Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for webhooks #106

Open
arahayrabedian opened this issue Dec 1, 2021 · 1 comment
Open

Support for webhooks #106

arahayrabedian opened this issue Dec 1, 2021 · 1 comment

Comments

@arahayrabedian
Copy link

I'm no go dev, but would you be at all interested in a PR that would add support to call webhooks on added/modified/deleted files? I may find time to put something like that together, but I'm not sure I have a use for it yet.

The motivation is that It would allow for easy triggering of automations - however, you could always watch a webdav directory or similar to do the same 🤷

Questions:

  • only notify or include file contents?
  • would you consider this scope creep?
@Eeems
Copy link
Contributor

Eeems commented Dec 5, 2021

Looks like the code you'll want to start looking at are the following:

By the looks of it, there is already a notification mechanism to let all other connected clients know that something has happened. This likely could be enhanced to allow for webhooks generically throughout the app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants