UsersModule

users. UsersModule

Module which handles user management

Constructor

new UsersModule()

Source:

Extends

  • AbstractApiModule

Methods

(async) find()

Source:

(async) init() → {Promise}

Description:
  • Initialises the module
Source:
Returns:
Type
Promise

(async) insert()

Source:

(async) onRequest(req)

Description:
  • Adds the current user _id to an incoming request to API
Source:
Parameters:
Name Type Description
req external:ExpressRequest

(async) processRequestMiddleware()

Source:

(async) setValues()

Source:

updateAccess(req, res, next)

Description:
  • Updates the user access timestamp
Source:
Parameters:
Name Type Description
req external:ExpressRequest
res external:ExpressResponse
next function