docker-compose up -d
curl --location --request GET 'http://localhost:1234/pokemon/charmander' \
--header 'api-key: strong'
This example was made by me, and I wrote an article about it. Visit https://willsena.dev/unlock-nginx-hidden-powers-with-javascript-module-njs/ for more information.