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

Method get

src/Config.js:47–68  ·  view source on GitHub ↗
(applicationId: string, mount: string)

Source from the content-addressed store, hash-verified

45
46export class Config {
47 static get(applicationId: string, mount: string) {
48 const cacheInfo = AppCache.get(applicationId);
49 if (!cacheInfo) {
50 return;
51 }
52 const config = new Config();
53 config.applicationId = applicationId;
54 Object.keys(cacheInfo).forEach(key => {
55 if (key == 'databaseController') {
56 config.database = new DatabaseController(cacheInfo.databaseController.adapter, config);
57 } else {
58 config[key] = cacheInfo[key];
59 }
60 });
61 config.mount = removeTrailingSlash(mount);
62 config.generateSessionExpiresAt = config.generateSessionExpiresAt.bind(config);
63 config.generateEmailVerifyTokenExpiresAt = config.generateEmailVerifyTokenExpiresAt.bind(
64 config
65 );
66 config.version = version;
67 return config;
68 }
69
70 async loadKeys() {
71 await Promise.all(

Callers 15

benchmarkObjectReadFunction · 0.45
benchmarkUserLoginFunction · 0.45
wrapMethodFunction · 0.45
getFunction · 0.45
loadKeysMethod · 0.45
renewSessionIfNeededFunction · 0.45
getAuthForSessionTokenFunction · 0.45
Auth.jsFile · 0.45
RestWrite.jsFile · 0.45
toJSONwithObjectsFunction · 0.45
builtInTriggerValidatorFunction · 0.45
handleRequestFunction · 0.45

Calls 1

removeTrailingSlashFunction · 0.85

Tested by 15

pushCompletedFunction · 0.36
parseResultsFunction · 0.36
execTestFunction · 0.36
checkJobStatusFunction · 0.36
getJobStatusFunction · 0.36
pushCompletedFunction · 0.36
methodFunction · 0.36
responseFunction · 0.36
startServerFunction · 0.36
successFunction · 0.36
actionGetFunction · 0.36