Added support for fetching content directly from host. Improved pattern interpolation. Refactored content modules.

This commit is contained in:
2019-11-01 04:22:36 +01:00
parent d773920da8
commit eee3ba0abc
26 changed files with 572 additions and 440 deletions

View File

@@ -7,7 +7,7 @@ const yaml = require('js-yaml');
const interpolate = require('../interpolate.js');
async function getIndex(user) {
const indexFilePath = interpolate(config.library.index.file, user, null, null, false);
const indexFilePath = interpolate(config.library.index.file, null, null, null, null, user, false);
try {
const indexFile = await fs.readFile(indexFilePath, 'utf8');