mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-11-10 17:47:07 +08:00
simple api log
This commit is contained in:
parent
4505ed0c92
commit
3d8122fa4a
2 changed files with 2 additions and 0 deletions
1
api.js
1
api.js
|
@ -60,6 +60,7 @@ server.use((req, res, next) => {
|
|||
if (req.route.path === '/users/:user/updates') {
|
||||
req.headers['accept-encoding'] = '';
|
||||
}
|
||||
log.http(req.method, req.url);
|
||||
next();
|
||||
});
|
||||
server.use(restify.plugins.gzipResponse());
|
||||
|
|
|
@ -320,6 +320,7 @@ module.exports = (db, server) => {
|
|||
});
|
||||
return next();
|
||||
}
|
||||
|
||||
if (addressData) {
|
||||
res.json({
|
||||
error: 'This email address already exists'
|
||||
|
|
Loading…
Reference in a new issue