Mercurial > hg > nginx-site
changeset 2438:86b0dd6e7208
Updated API version in njs examples.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Thu, 03 Oct 2019 13:53:34 +0300 |
parents | bf8eb55e35dd |
children | 12716b241230 |
files | xml/en/docs/njs/examples.xml xml/ru/docs/njs/examples.xml |
diffstat | 2 files changed, 6 insertions(+), 6 deletions(-) [+] |
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;
--- a/xml/ru/docs/njs/examples.xml Thu Sep 26 13:25:29 2019 +0300 +++ b/xml/ru/docs/njs/examples.xml Thu Oct 03 13:53:34 2019 +0300 @@ -9,7 +9,7 @@ <article name="Примеры использования" link="/ru/docs/njs/examples.html" lang="ru" - 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;