@well-known-js/koa
v1.0.2
Published
Koa middleware for serving .well-known routes.
Maintainers
Readme
@well-known-js/koa
Koa middleware that serves configured /.well-known/* routes directly.
Installation
pnpm add @well-known-js/koa @well-known-js/core koaUsage
import Koa from "koa";
import { wellKnown } from "@well-known-js/koa";
import config from "./well-known.config.js";
const app = new Koa();
app.use(wellKnown(config));
app.listen(3000);GET and HEAD are handled with the provider content type. Other requests continue through the Koa middleware chain.
