Modify params endpoint response
This commit is contained in:
@@ -6,5 +6,20 @@ import Common from '../src/common.js';
|
||||
* Show all possible parameters for manifest URLs
|
||||
*/
|
||||
export default async function exposeParams() {
|
||||
return await Common.getParamsFromFolders();
|
||||
console.log(process.env.IMAGES_DIR);
|
||||
let techs = [];
|
||||
|
||||
for (let key in Common.TECH_NAMES) {
|
||||
techs.push({
|
||||
'acronym': key.toUpperCase(),
|
||||
'fullname': Common.TECH_NAMES[key]
|
||||
});
|
||||
}
|
||||
|
||||
let papyri = await Common.getParamsFromFolders();
|
||||
|
||||
return {
|
||||
'techniques' : techs,
|
||||
papyri
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user