module.exports = {
/**
* sends the coredatabase to client
* TBD: Check for permissions !!!
*/
downloadDatabase: (req, res) => {
req.app.logger.debug('ROUTES-ADMIN-DATABASEMAINTENANCE | Downloading core database');
const file = global.appRoot + `/store/coredatabase.db`;
res.download(file); // Set disposition and send it.
}
};