use export default

This commit is contained in:
srgooglo 2022-06-22 17:37:25 +02:00
parent 4d7fbfbaee
commit 5a50349bd7
2 changed files with 2 additions and 4 deletions

View File

@ -1,3 +1 @@
module.exports = {
schematized: require("./schematized"),
}
export { default as Schematized } from "./schematized"

View File

@ -1,4 +1,4 @@
module.exports = (schema = {}, fn) => {
export default (schema = {}, fn) => {
return async (req, res, next) => {
if (typeof req.body === "undefined") {
req.body = {}