MCPcopy
hub / github.com/parse-community/parse-server / getMountForRequest

Function getMountForRequest

src/middlewares.js:22–26  ·  view source on GitHub ↗
(req)

Source from the content-addressed store, hash-verified

20 'X-Parse-Master-Key, X-Parse-REST-API-Key, X-Parse-Javascript-Key, X-Parse-Application-Id, X-Parse-Client-Version, X-Parse-Session-Token, X-Requested-With, X-Parse-Revocable-Session, X-Parse-Request-Id, Content-Type, Pragma, Cache-Control';
21
22const getMountForRequest = function (req) {
23 const mountPathLength = req.originalUrl.length - req.url.length;
24 const mountPath = req.originalUrl.slice(0, mountPathLength);
25 return req.protocol + '://' + req.get('host') + mountPath;
26};
27
28const getBlockList = (ipRangeList, store) => {
29 if (store.get('blockList')) { return store.get('blockList'); }

Callers 3

handleParseHeadersFunction · 0.85
allowCrossDomainFunction · 0.85
handleParseAuthFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected