mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-08 11:18:41 +01:00
14 lines
377 B
Go
14 lines
377 B
Go
|
|
package plugins
|
||
|
|
|
||
|
|
// CapabilityHTTPEndpoint indicates the plugin can handle incoming HTTP requests.
|
||
|
|
// Detected when the plugin exports the nd_http_handle_request function.
|
||
|
|
const CapabilityHTTPEndpoint Capability = "HTTPEndpoint"
|
||
|
|
|
||
|
|
const FuncHTTPHandleRequest = "nd_http_handle_request"
|
||
|
|
|
||
|
|
func init() {
|
||
|
|
registerCapability(
|
||
|
|
CapabilityHTTPEndpoint,
|
||
|
|
FuncHTTPHandleRequest,
|
||
|
|
)
|
||
|
|
}
|