MCPcopy Index your code
hub / github.com/nodeSolidServer/node-solid-server / newCertificate

Function newCertificate

lib/api/accounts/user-accounts.mjs:48–56  ·  view source on GitHub ↗
(accountManager)

Source from the content-addressed store, hash-verified

46 * @return {Function}
47 */
48export 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

Callers 2

middlewareFunction · 0.85

Calls 1

handleMethod · 0.45

Tested by

no test coverage detected