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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user