Open keighrim opened 1 year ago
A few things to consider:
mapper
function to call the "obtain" function when the requested GUID is not found in the DB. Combining this idea with the above, handling async download can be tricky if mapper
route needs to immediately response.
We'd like to have a routing to "obtain" a new file, given GUID and file type, within the main webapp. At the moment, we haven't figure out how to actually obtain new files from AAPB API, so for now the function can just create some dummy files under some random subdirectory. But the newly obtained file should be indexed into the DB, and can be retrieved via
mapper
route.