Move plugins to express-twtkpr-core-plugins package

Add plugin structure
Fix stale cache after posting
Update to v0.9.0
This commit is contained in:
2026-05-12 23:43:26 -04:00
parent 298f267742
commit 8658a14200
103 changed files with 1632 additions and 1996 deletions

View File

@@ -1,5 +1,6 @@
import type { Request, Response } from 'express';
import NodeCache from '@cacheable/node-cache';
import type { Metadata } from 'twtxt-lib';
import { NodeCache } from '@cacheable/node-cache';
import { QueryParameters } from '../../types.js';
export interface MetadataHandler {
cache: NodeCache<unknown>;
@@ -14,4 +15,4 @@ export interface MetadataHandler {
* @param cache
* @param metadataParameter
*/
export default function metadataHandler(req: Request, res: Response, cache: NodeCache<unknown>, metadataParameter: QueryParameters['metadata']): void;
export default function metadataHandler(req: Request, res: Response, metadata: Metadata, metadataParameter: QueryParameters['metadata']): void;