Added IncomingMailgun
Enables easy decoding of forwarded emails from Mailgun
mailgunGroup.post("all") { (req) -> Future<String> in
do {
return try req.content.decode(IncomingMailgun.self).map { (incomingMail) in
return "Hello"
}
} catch {
throw Abort(HTTPStatus.internalServerError, reason: "Could not decode incoming Mailgun")
}
}