@well-known-js/fastify
v1.0.2
Published
Fastify plugin for serving .well-known routes.
Maintainers
Readme
@well-known-js/fastify
Fastify plugin that serves configured /.well-known/* routes directly.
Installation
pnpm add @well-known-js/fastify @well-known-js/core fastifyUsage
import Fastify from "fastify";
import wellKnown from "@well-known-js/fastify";
import config from "./well-known.config.js";
const app = Fastify();
await app.register(wellKnown, { config });
await app.listen({ port: 3000 });Each provider becomes a Fastify GET route with its declared content type.
