(accountManager)
| 46 | * @return {Function} |
| 47 | */ |
| 48 | export function newCertificate (accountManager) { |
| 49 | return (req, res, next) => { |
| 50 | return AddCertificateRequest.handle(req, res, accountManager) |
| 51 | .catch(err => { |
| 52 | err.status = err.status || 400 |
| 53 | next(err) |
| 54 | }) |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * Returns an Express router for providing user account related middleware |
no test coverage detected