mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 10:34:17 +00:00
use export default
This commit is contained in:
parent
4d7fbfbaee
commit
5a50349bd7
@ -1,3 +1 @@
|
|||||||
module.exports = {
|
export { default as Schematized } from "./schematized"
|
||||||
schematized: require("./schematized"),
|
|
||||||
}
|
|
@ -1,4 +1,4 @@
|
|||||||
module.exports = (schema = {}, fn) => {
|
export default (schema = {}, fn) => {
|
||||||
return async (req, res, next) => {
|
return async (req, res, next) => {
|
||||||
if (typeof req.body === "undefined") {
|
if (typeof req.body === "undefined") {
|
||||||
req.body = {}
|
req.body = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user