Modify params endpoint response

This commit is contained in:
2024-11-14 20:23:54 +01:00
parent 1aed11cf2e
commit 38f0249fab
2 changed files with 28 additions and 5 deletions

View File

@@ -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
};
}