akf-forum/errors/error.js

3 lines
95 B
JavaScript
Raw Normal View History

2022-03-13 16:16:46 +03:00
module.exports = (res, type, error) =>
res.status(type).render("error", { type, error });