Skip to content

Commit

Permalink
5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Nov 27, 2023
1 parent 268bb32 commit 2e87474
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion _includes/api/en/5x/app-METHOD.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ The method, `app.all()`, is not derived from any HTTP method and loads middlewar
the specified path for _all_ HTTP request methods.
For more information, see [app.all](#app.all).

For more information on routing, see the [routing guide](/guide/routing.html).
For more information on routing, see the [routing guide](/{{page.lang}}/guide/routing.html).
2 changes: 1 addition & 1 deletion _includes/api/en/5x/app-delete-method.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h3 id='app.delete.method'>app.delete(path, callback [, callback ...])</h3>

Routes HTTP DELETE requests to the specified path with the specified callback functions.
For more information, see the [routing guide](/guide/routing.html).
For more information, see the [routing guide](/{{page.lang}}/guide/routing.html).

{% include api/en/5x/routing-args.html %}

Expand Down
2 changes: 1 addition & 1 deletion _includes/api/en/5x/app-get-method.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Routes HTTP GET requests to the specified path with the specified callback funct

{% include api/en/5x/routing-args.html %}

For more information, see the [routing guide](/guide/routing.html).
For more information, see the [routing guide](/{{page.lang}}/guide/routing.html).

#### Example

Expand Down
2 changes: 1 addition & 1 deletion _includes/api/en/5x/app-post-method.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h3 id='app.post.method'>app.post(path, callback [, callback ...])</h3>

Routes HTTP POST requests to the specified path with the specified callback functions.
For more information, see the [routing guide](/guide/routing.html).
For more information, see the [routing guide](/{{page.lang}}/guide/routing.html).

{% include api/en/5x/routing-args.html %}

Expand Down
2 changes: 1 addition & 1 deletion _includes/api/en/5x/app-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ A custom query string parsing function will receive the complete query string, a
<h5 id="trust.proxy.options.table">Options for `trust proxy` setting</h5>

<p markdown="1">
Read [Express behind proxies](/guide/behind-proxies.html) for more
Read [Express behind proxies]/{{page.lang}}/behind-proxies.html) for more
information.
</p>

Expand Down
4 changes: 2 additions & 2 deletions _includes/api/en/5x/app-use.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h3 id='app.use'>app.use([path,] callback [, callback...])</h3>

Mounts the specified [middleware](/guide/using-middleware.html) function or functions
Mounts the specified [middleware](/{{page.lang}}/guide/using-middleware.html) function or functions
at the specified path:
the middleware function is executed when the base of the requested path matches `path`.

Expand Down Expand Up @@ -259,7 +259,7 @@ app.use(mw1, [mw2, r1, r2], subApp)

</table>

Following are some examples of using the [express.static](/guide/using-middleware.html#middleware.built-in)
Following are some examples of using the [express.static](/{{page.lang}}/guide/using-middleware.html#middleware.built-in)
middleware in an Express app.

Serve static content for the app from the "public" directory in the application directory:
Expand Down
2 changes: 1 addition & 1 deletion _includes/api/en/5x/res-render.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Optional parameters:

The `view` argument is a string that is the file path of the view file to render. This can be an absolute path, or a path relative to the `views` setting. If the path does not contain a file extension, then the `view engine` setting determines the file extension. If the path does contain a file extension, then Express will load the module for the specified template engine (via `require()`) and render it using the loaded module's `__express` function.

For more information, see [Using template engines with Express](/guide/using-template-engines.html).
For more information, see [Using template engines with Express](/{{page.lang}}/guide/using-template-engines.html).

**NOTE:** The `view` argument performs file system operations like reading a file from disk and evaluating Node.js modules, and as so for security reasons should not contain input from the end-user.

Expand Down

0 comments on commit 2e87474

Please sign in to comment.