class Middleware {
    constructor() {

    }

    before(event) {

    }

    after(event) {
        
    }
}

module.exports = Middleware
class Middleware {
    constructor() {

    }

    before(event) {
        return event
    }

    after(event) {
        return event
    }
}

module.exports = Middleware
Make sure stub methods return event.
Make sure stub methods return event.
