Added support for fetching content directly from host. Improved pattern interpolation. Refactored content modules.
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user