Express Middleware for IETF RFC 8615
- Allows you to register resource schemes to share meta data in a structured way
- Written in TypeScript
$ npm install express-well-known --save
$ yarn add express-well-known
import * as express from "express";
import { registerURIs } from "express-well-known";
const manifest = {
application: {
sha: "4c7e5e667bd30affa2e8c3bc8c65fd38e90912fe",
},
};
const app = express();
const wellKnown = registerURIs(manifest);
app.use(wellKnown);
const express = require("express");
const { registerURIs } = require("express-well-known");
const manifest = {
application: {
sha: "4c7e5e667bd30affa2e8c3bc8c65fd38e90912fe",
},
};
const app = express();
const wellKnown = registerURIs(manifest);
app.use(wellKnown);
returns an express router to mount containing all the well-known resources