diff options
Diffstat (limited to 'vnext/server/middleware')
-rw-r--r-- | vnext/server/middleware/host-meta.js | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/vnext/server/middleware/host-meta.js b/vnext/server/middleware/host-meta.js index eec7d3e3..fe6ca631 100644 --- a/vnext/server/middleware/host-meta.js +++ b/vnext/server/middleware/host-meta.js @@ -15,7 +15,7 @@ export const xmlMeta = async (_req, res) => { } /** - * host-meta endpoint + * host-meta.json endpoint * @type {import('express').RequestParamHandler} */ export const jsonMeta = async (_req, res) => { @@ -28,3 +28,18 @@ export const jsonMeta = async (_req, res) => { ] }) } + +/** + * nodeinfo endpoint + * @type {import('express').RequestParamHandler} + */ +export const nodeinfo = async (_req, res) => { + return res.json({ + 'links': [ + { + 'rel': 'https://nodeinfo.diaspora.software/ns/schema/2.0', + 'href': `${baseURL}/.well-known/nodeinfo/2.0` + } + ] + }) +} |