From e4cf32acc50c165f7e1a868e3173093d51b04bfd Mon Sep 17 00:00:00 2001 From: mahdi Date: Sun, 15 Sep 2024 03:57:28 +0330 Subject: [PATCH] fix: fix example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1a52fa9..78327d5 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ To get started with `@medishn/gland`, follow these steps: You can add middleware functions to your Gland instance: ```typescript -import { Context, mid } from '@medishn/gland'; +import { Context } from '@medishn/gland'; const g = new gland(); @@ -71,7 +71,7 @@ const myMiddleware = async (ctx: Context, next: NxtFunction) => { await next(); }; -g.use(mid(myMiddleware)); +g.use(myMiddleware); ``` ## Routing