@dcl/platform-server-commons
Version:
Platform's Http Server Common utils
7 lines • 538 B
TypeScript
import { IHttpServerComponent } from '@well-known-components/interfaces';
/**
* Middleware that automatically converts Ethereum addresses to lowercase in URL parameters
* This middleware detects parameters that match the Ethereum address pattern and normalizes them
*/
export declare function ethAddressNormalizerMiddleware(): (ctx: IHttpServerComponent.DefaultContext<any>, next: () => Promise<IHttpServerComponent.IResponse>) => Promise<IHttpServerComponent.IResponse>;
//# sourceMappingURL=eth-address-normalizer-middleware.d.ts.map