typescript(translucid): added [] in keys in readme
Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
1b388a05d1
commit
6388e9cafb
|
@ -36,7 +36,7 @@ Then you can add midlewares like this:
|
||||||
```
|
```
|
||||||
translucid.use({
|
translucid.use({
|
||||||
name:"my midleware",
|
name:"my midleware",
|
||||||
keys:"myid",
|
keys:["myid"],
|
||||||
run:(prev,req,res,next) => {
|
run:(prev,req,res,next) => {
|
||||||
//prev is the data that is going to be sent to the client
|
//prev is the data that is going to be sent to the client
|
||||||
//(it might for example be the index.html file);
|
//(it might for example be the index.html file);
|
||||||
|
|
Loading…
Reference in a new issue