feat: point field localization and graphql
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
const bindCollectionMiddleware = (collection) => {
|
||||
return (req, res, next) => {
|
||||
req.collection = collection;
|
||||
next();
|
||||
};
|
||||
import { NextFunction, Response } from 'express';
|
||||
import { PayloadRequest } from '../express/types';
|
||||
|
||||
const bindCollectionMiddleware = (collection: string) => (req: PayloadRequest, res: Response, next: NextFunction) => {
|
||||
req.collection = collection;
|
||||
next();
|
||||
};
|
||||
|
||||
export default bindCollectionMiddleware;
|
||||
|
||||
Reference in New Issue
Block a user