Skip to content

Commit

Permalink
fix: fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mdy-m committed Sep 15, 2024
1 parent ef71b1e commit e4cf32a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -71,7 +71,7 @@ const myMiddleware = async (ctx: Context, next: NxtFunction) => {
await next();
};
g.use(mid(myMiddleware));
g.use(myMiddleware);
```

## Routing
Expand Down

0 comments on commit e4cf32a

Please sign in to comment.