Mercurial > hg > nginx-site
diff xml/en/docs/njs/examples.xml @ 2438:86b0dd6e7208
Updated API version in njs examples.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Thu, 03 Oct 2019 13:53:34 +0300 |
parents | aa20cba8027c |
children | 253641e268a8 |
line wrap: on
line diff
--- a/xml/en/docs/njs/examples.xml Thu Sep 26 13:25:29 2019 +0300 +++ b/xml/en/docs/njs/examples.xml Thu Oct 03 13:53:34 2019 +0300 @@ -9,7 +9,7 @@ <article name="Examples" link="/en/docs/njs/examples.html" lang="en" - rev="5"> + rev="6"> <section id="helloword" name="Hello World"> @@ -239,7 +239,7 @@ <path>subrequest.js</path>: <example> function set_keyval(r) { - r.subrequest('/api/3/http/keyvals/foo', + r.subrequest('/api/5/http/keyvals/foo', { method: 'POST', body: JSON.stringify({ foo: 789, bar: "ss dd 00" })}, @@ -253,7 +253,7 @@ } function version(r) { - r.subrequest('/api/3/nginx', { method: 'GET' }, function(res) { + r.subrequest('/api/5/nginx', { method: 'GET' }, function(res) { if (res.status != 200) { r.return(res.status); return;