Subpaths in register_route and register_endpoint
Is there an existing feature request for this?
- [x] I have searched the existing issues
Your feature request
I'm trying to switch from Node-RED to AppDaemon. In Node-RED, it's possible to register HTTP endpoints using the http-in node which accepts any path including path parameters.
ADAPI.register_route() as well as ADAPI.register_endpoint() only seem to support single level routes.
For example, a route with name foo can be accessed using http://ip:port/app/foo (register_route) or http://ip:port/api/appdaemon/foo (register_endpoint).
But I would also expect that I could register a route or endpoint like foo/bar which should be accessible via http://ip:port/app/foo/bar (register_route) or http://ip:port/api/appdaemon/foo/bar.
Maybe also supporting path parameters like foo/{name} and including them in the callback would be nice.