feat(metadata): implement MetadataRequest and supporting classes for file metadata extraction and response formatting
This commit is contained in:
parent
72769a3ef4
commit
74fb118aa4
4 changed files with 126 additions and 0 deletions
18
scripts/API/response/simple-data.js
Normal file
18
scripts/API/response/simple-data.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
const Parser = require(`./parser`);
|
||||
|
||||
class SimpleMetadata extends Parser {
|
||||
/*
|
||||
Clean the log information.
|
||||
|
||||
@param {Object} ENTRY the selected entry, or the entries
|
||||
*/
|
||||
constructor(ENTRY) {
|
||||
super(ENTRY, {
|
||||
"name": "originalname",
|
||||
"type": "mimetype",
|
||||
"size": "size"
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = SimpleMetadata;
|
Loading…
Add table
Add a link
Reference in a new issue