mirror of
https://github.com/luxfi/pics.git
synced 2026-10-30 15:22:15 +00:00
17 lines
301 B
JavaScript
17 lines
301 B
JavaScript
'use strict';
|
|
|
|
const { buildChangePassword } = require(__dirname+'/../../lib/build/tasks.js');
|
|
|
|
module.exports = async (req, res, next) => {
|
|
|
|
let html;
|
|
try {
|
|
html = await buildChangePassword();
|
|
} catch (err) {
|
|
return next(err);
|
|
}
|
|
|
|
return res.set('Cache-Control', 'max-age=0').send(html);
|
|
|
|
};
|