added variable for frontend name

pull/22/head
tycrek 4 years ago
parent b6c6098fd7
commit d766bd15cf
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -20,8 +20,9 @@ const { path, log, generateToken } = require('./utils');
const { CODE_NO_CONTENT, CODE_INTERNAL_SERVER_ERROR } = require('./MagicNumbers.json'); const { CODE_NO_CONTENT, CODE_INTERNAL_SERVER_ERROR } = require('./MagicNumbers.json');
//#endregion //#endregion
// Set up ass-x // Set up premium frontend
const ASS_PREMIUM = fs.existsSync('./ass-x/package.json') ? require('./ass-x') : { enabled: false }; const FRONTEND_NAME = 'ass-x'; // <-- Change this to use a custom frontend
const ASS_PREMIUM = fs.existsSync(`./${FRONTEND_NAME}/package.json`) ? require(`./${FRONTEND_NAME}`) : { enabled: false };
//#region Variables, module setup //#region Variables, module setup
const app = express(); const app = express();

Loading…
Cancel
Save