Client's public folder renamed to static
Regular campaign sender seems to have most of the code in place. (Not tested.)
This commit is contained in:
parent
89eabea0de
commit
63765f7222
354 changed files with 836 additions and 324 deletions
|
@ -5,8 +5,10 @@ const config = require('config');
|
|||
const forms = require('../models/forms');
|
||||
const shares = require('../models/shares');
|
||||
const urls = require('./urls');
|
||||
const { AppType } = require('../shared/app');
|
||||
|
||||
async function getAnonymousConfig(context, trusted) {
|
||||
|
||||
async function getAnonymousConfig(context, appType) {
|
||||
return {
|
||||
authMethod: passport.authMethod,
|
||||
isAuthMethodLocal: passport.isAuthMethodLocal,
|
||||
|
@ -17,7 +19,9 @@ async function getAnonymousConfig(context, trusted) {
|
|||
trustedUrlBaseDir: urls.getTrustedUrlBaseDir(),
|
||||
sandboxUrlBase: urls.getSandboxUrlBase(),
|
||||
sandboxUrlBaseDir: urls.getSandboxUrlBaseDir(),
|
||||
trusted
|
||||
publicUrlBase: urls.getPublicUrlBase(),
|
||||
publicUrlBaseDir: urls.getPublicUrlBaseDir(),
|
||||
appType
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -36,8 +40,7 @@ async function getAuthenticatedConfig(context) {
|
|||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getAuthenticatedConfig,
|
||||
getAnonymousConfig
|
||||
};
|
||||
|
||||
module.exports.getAuthenticatedConfig = getAuthenticatedConfig;
|
||||
module.exports.getAnonymousConfig = getAnonymousConfig;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue