Separated Online List API to independent module that can be used in any service.
It exports single function much like every other API module that returns route mounter ((prefix, server) function with GET /online endpoint) that has updateOnlineListMiddleware property containing restify middleware for updating list based on req.params.user.
Separated Online List API to independent module that can be used in any service.
It exports single function much like every other API module that returns route mounter (
(prefix, server)
function withGET /online
endpoint) that hasupdateOnlineListMiddleware
property containing restify middleware for updating list based onreq.params.user
.