Cannot extend REST API
fcharrier opened this issue · comments
Hi,
I would like to use the "subscriptions.get" API, but I need to be able to sort & limit results (I proposed to make this dev here: RocketChat/feature-requests#404). If this development does not match the roadmap, or does not make sense for the product, I thought I would be able to do it via an app.
I tried it, but the app does not allow the "secure" mode (only ApiSecurity.UNSECURE is available). I tried to make my own "security" check, but can't access to user "auth token" to check it. Even if I can make this check, it seems there is no way to access directly the mongo database, to return sorted and limited results.
Is there a way for an app to access RC "directly", without the given bridge?
Thanks,
Fred