/user/log

Exports the [user] access log method for the /api/user/log route.

Requires

Methods

(inner) accessLog(req, res)

/api/user/log?email=dennis@geolytix.co.uk

The accessLog method is routed by the User API module.

The method must be requested by a user with admin priviliges or by a user wanting to access their own record.

Parameters:
NameTypeDescription
reqObject

HTTP request.

resObject

HTTP response.

req.paramsObject

Request parameter.

Properties
NameTypeDescription
emailstring

Email to add.

userObject

Requesting user.

Properties
NameTypeDescription
adminboolean

Requesting user is admin.