Skip to content

Commit

Permalink
trifle
Browse files Browse the repository at this point in the history
  • Loading branch information
AMD-NICK committed Sep 8, 2024
1 parent 4a9e198 commit 2753bf8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

It's for [lua-express](https://github.com/TRIGONIM/lua-express)

## Installation:

```bash
luarocks install lua-express-middlewares
```

## Usage:

### body-parser
Expand Down Expand Up @@ -31,7 +37,7 @@ local cookieparser = require("cookie-parser")

```lua
local rate_limiter = require("rate-limiter-simple")
app:use( rate_limiter{
app:use( rate_limiter{ -- all options are optional. Default values shown below
frame_time = 60,
limit_amount = 120,
limit_on = function(req) return req:ip() end,
Expand Down

0 comments on commit 2753bf8

Please sign in to comment.