PUBLIC int espSaveConfig(HttpRoute *route) { EspRoute *eroute; eroute = route->eroute; return mprSaveJson(eroute->config, mprJoinPath(route->documents, "config.json"), MPR_JSON_PRETTY); }
PUBLIC int espSaveConfig(HttpRoute *route) { cchar *path; path = mprJoinPath(route->home, "esp.json"); #if KEEP mprBackupLog(path, 3); #endif return mprSaveJson(route->config, path, MPR_JSON_PRETTY | MPR_JSON_QUOTES); }