@ovineko/spa-guard-fastify
v0.0.4
Published
Fastify plugin for spa-guard beacon endpoint and HTML cache handler with ETag/304
Maintainers
Readme
@ovineko/spa-guard-fastify
Fastify plugin for spa-guard beacon endpoint and HTML cache handler with ETag/304 support.
Install
pnpm (recommended):
pnpm add @ovineko/spa-guard-fastify @ovineko/spa-guard @ovineko/spa-guard-node fastify fastify-pluginnpm:
npm install @ovineko/spa-guard-fastify @ovineko/spa-guard @ovineko/spa-guard-node fastify fastify-pluginyarn:
yarn add @ovineko/spa-guard-fastify @ovineko/spa-guard @ovineko/spa-guard-node fastify fastify-pluginbun:
bun add @ovineko/spa-guard-fastify @ovineko/spa-guard @ovineko/spa-guard-node fastify fastify-plugindeno:
deno add npm:@ovineko/spa-guard-fastify npm:@ovineko/spa-guard npm:@ovineko/spa-guard-node npm:fastify npm:fastify-pluginUsage
import Fastify from "fastify";
import { fastifySPAGuard } from "@ovineko/spa-guard-fastify";
const app = Fastify();
app.register(fastifySPAGuard, { path: "/api/beacon" });Documentation
Full documentation: ovineko.com/docs/spa-guard/fastify
License
MIT
