Possibility for plugins to add host-meta informations #5808
Labels
Component: PeerTube Plugin 📦
Features that can be developed in a plugin, but require PeerTube plugin API development
Type: Feature Request ✨
Describe the problem to be solved
Hello,
Some plugin could implement some advanced feature that requires defining new web host metadata.
For example, my livechat plugin could declare the websocket endpoint ( https://xmpp.org/extensions/xep-0156.html , https://xmpp.org/extensions/xep-0468.html ), so that chat endpoints can be discovered and join easily by remote clients/servers.
So it would be nice if a plugin could add some host-meta informations.
There are 2 requirements:
/.well-known/host-meta
result/.well-known
(not needed in my case, but could be for other plugins)Describe the solution you would like
One possible way is to provide 2 helper functions.
The first one to add links to the host-meta page.
The second one to add new routes. If a route already exists (because it is part of Peertube, or because another plugin has registered it), it should fail.
The text was updated successfully, but these errors were encountered: