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