The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/packages/rocketchat-api/server/helpers
Marcos Spessatto Defendi cfb5f3e4fe Change JSON to EJSON.parse query to support type Date (#12706) 7 years ago
..
README.md Add a readme to the helpers to clearify what they are 8 years ago
composeRoomWithLastMessage.js Convert rocketchat-api to main module structure (#12510) 7 years ago
deprecationWarning.js Convert rocketchat-api to main module structure (#12510) 7 years ago
getLoggedInUser.js Convert rocketchat-api to main module structure (#12510) 7 years ago
getPaginationItems.js Convert rocketchat-api to main module structure (#12510) 7 years ago
getUserFromParams.js Convert rocketchat-api to main module structure (#12510) 7 years ago
getUserInfo.js Convert rocketchat-api to main module structure (#12510) 7 years ago
insertUserObject.js Convert rocketchat-api to main module structure (#12510) 7 years ago
isUserFromParams.js Convert rocketchat-api to main module structure (#12510) 7 years ago
parseJsonQuery.js Change JSON to EJSON.parse query to support type Date (#12706) 7 years ago
requestParams.js Convert rocketchat-api to main module structure (#12510) 7 years ago

README.md

REST API Helpers

What are they?

Helpers are functions which get injected into the context of this on each request the REST API recieves. This allows for commonly used code, such as retriving the target user, to be placed in one spot and used throughout the entire REST API code base.