akf-forum/errors/error.js
2022-02-26 21:26:27 +03:00

2 lines
97 B
JavaScript

module.exports = (res, type, error) =>
res.status(type).render("error", { type, error });