mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 10:34:17 +00:00
remove unused class
This commit is contained in:
parent
97b20ca4d6
commit
16a970b8fb
@ -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 }
|
Loading…
x
Reference in New Issue
Block a user