remove unused class

This commit is contained in:
srgooglo 2022-02-18 13:03:44 +01:00
parent 97b20ca4d6
commit 16a970b8fb

View File

@ -1,19 +0,0 @@
class Controller {
constructor(payload) {
this.payload = {...payload}
return this
}
exec = async (req, res, next) => {
if (typeof this.payload.exec === "function") {
try {
await this.payload.exec (req, res, next)
} catch (error) {
return res.status(500).json({ error: error.message, endpoint: this.payload.route })
}
}
}
}
module.exports = { Controller }