{"action":"closed","issue":{"url":"https://api.github.com/repos/rethinkdb/horizon/issues/466","repository_url":"https://api.github.com/repos/rethinkdb/horizon","labels_url":"https://api.github.com/repos/rethinkdb/horizon/issues/466/labels{/name}","comments_url":"https://api.github.com/repos/rethinkdb/horizon/issues/466/comments","events_url":"https://api.github.com/repos/rethinkdb/horizon/issues/466/events","html_url":"https://github.com/rethinkdb/horizon/issues/466","id":156001866,"number":466,"title":"Documentation for adding custom backend functionality","user":{"login":"sunjay","id":530939,"avatar_url":"https://avatars.githubusercontent.com/u/530939?v=3","gravatar_id":"","url":"https://api.github.com/users/sunjay","html_url":"https://github.com/sunjay","followers_url":"https://api.github.com/users/sunjay/followers","following_url":"https://api.github.com/users/sunjay/following{/other_user}","gists_url":"https://api.github.com/users/sunjay/gists{/gist_id}","starred_url":"https://api.github.com/users/sunjay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunjay/subscriptions","organizations_url":"https://api.github.com/users/sunjay/orgs","repos_url":"https://api.github.com/users/sunjay/repos","events_url":"https://api.github.com/users/sunjay/events{/privacy}","received_events_url":"https://api.github.com/users/sunjay/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-20T16:28:03Z","updated_at":"2016-05-20T20:21:17Z","closed_at":"2016-05-20T20:21:17Z","body":"The [docs](http://horizon.io/faq/) specify that Horizon can be extended to add custom backend functionality:\r\n\r\n> Horizon exposes a powerful API that allows writing sophisticated realtime applications. However, we carefully designed Horizon to provide an upgrade path in case your application outgrows the Horizon API. If you need to add backend functionality, instead of using the standalone Horizon server you can require Horizon in Node.js as a library, and mix and match Horizon services along with the rest of the Node.js ecosystem. Since Horizon is built on top of RethinkDB, your app will have full access to the underlying database, and you can write arbitrarily complex code without being limited by Horizon’s base APIs and tools.\r\n\r\nHowever I haven't been able to find any documentation about how to do any of that. Can something about this be added? \r\n\r\nMy use case is some rules that need to be enforced (and hidden). I can't manage with simple validation functions. I want to add a custom endpoint on the backend (or something of that nature) to run my code. How would this look with horizon? Would this be a custom endpoint or would I be adding a method to the horizon object? The docs would hopefully answer these questions. "}}
{"actor":{"display_login":"danielmewes"}}