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

Function linkServiceEndpoint

lib/handlers/options.mjs:22–25  ·  view source on GitHub ↗
(req, res)

Source from the content-addressed store, hash-verified

20}
21
22function linkServiceEndpoint (req, res) {
23 const serviceEndpoint = url.resolve(req.app.locals.ldp.resourceMapper.resolveUrl(req.hostname, req.path), '.well-known/solid')
24 addLink(res, serviceEndpoint, 'service')
25}
26
27function linkAcceptEndpoint (res) {
28 res.header('Accept-Patch', 'text/n3, application/sparql-update, application/sparql-update-single-match')

Callers 1

handlerFunction · 0.85

Calls 2

addLinkFunction · 0.90
resolveUrlMethod · 0.80

Tested by

no test coverage detected