15 lines
262 B
JavaScript
15 lines
262 B
JavaScript
import lib from "../lib.mjs";
|
|
|
|
export default (router, tpl) => {
|
|
router.get(/^\/upload$/, lib.auth, async (req, res) => {
|
|
|
|
res.reply({
|
|
body: tpl.render('upload', {
|
|
phrase,
|
|
tmp: null
|
|
}, req)
|
|
});
|
|
});
|
|
return router;
|
|
};
|