UNPKG

publication-igid

Version:

Authorization gateway relying on an auth service for providing user editing interfaces

29 lines (17 loc) 485 B
class CustomStatic { constructor() { } initialize(db_obj,conf) { this.class_conf = conf ? conf.static_assets : false this.db = db_obj } async fetch(asset_key,data) { if ( this.db === undefined ) return false let pdb = this.db.pdb if ( pdb === undefined ) return false let asset_obj = await pdb.get_entry(data) return asset_obj } async load(files) {} } module.exports = CustomStatic