MCPcopy Index your code
hub / github.com/parse-community/parse-server / setConfig

Method setConfig

src/Routers/PagesRouter.js:654–662  ·  view source on GitHub ↗

* Sets the Parse Server configuration in the request object to make it * easily accessible throughtout request processing. * @param {Object} req The request. * @param {Boolean} failGracefully Is true if failing to set the config should * not result in an invalid request response. Default

(req, failGracefully = false)

Source from the content-addressed store, hash-verified

652 * not result in an invalid request response. Default is `false`.
653 */
654 async setConfig(req, failGracefully = false) {
655 req.config = Config.get(req.params.appId || req.query.appId);
656 if (!req.config && !failGracefully) {
657 this.invalidRequest();
658 }
659 if (req.config) {
660 await req.config.loadKeys();
661 }
662 }
663
664 mountPagesRoutes() {
665 this.route(

Callers 3

mountPagesRoutesMethod · 0.95
mountCustomRoutesMethod · 0.95
mountStaticRouteMethod · 0.95

Calls 3

invalidRequestMethod · 0.95
loadKeysMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected