1
Fork 0

typescript(translucid): added [] in keys in readme

Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
Matei Adriel 2019-01-19 23:25:24 +02:00 committed by prescientmoon
parent 1b388a05d1
commit 6388e9cafb
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -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);