Class

LinkController

LinkController()

Link Controller Handles link (URL) creation, listing, and public resolve for investigations

Constructor

# new LinkController()

View Source controllers/link.controller.js, line 8

Methods

Create a new link for an investigation. POST /api/investigation/:id/links

Parameters:
Name Type Description
req ICreateLinkRequest

Request object with investigation id in params and link data in body

res Response

Express response object

View Source controllers/link.controller.js, line 31

Resolves when the response has been sent

Promise.<void>

List all links for an investigation. GET /api/investigation/:id/links

Parameters:
Name Type Description
req IGetLinksRequest

Request object with investigation id in params

res Response

Express response object

View Source controllers/link.controller.js, line 54

Resolves when the response has been sent

Promise.<void>

Resolve a link by key and subLink (public). Increments visit count and returns investigation id. GET /api/link/:key/:subLink

Parameters:
Name Type Description
req IResolveLinkRequest

Request object with key and subLink in params

res Response

Express response object

View Source controllers/link.controller.js, line 16

Resolves when the response has been sent

Promise.<void>