Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 6fe88cc

Browse files
gkalpakalan-agius4
authored andcommitted
docs: fix variable name in commented out code (app --> server)
1 parent 707c276 commit 6fe88cc

File tree

6 files changed

+7
-5
lines changed

6 files changed

+7
-5
lines changed

integration/express-engine-ivy-prerender/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function app() {
2323
server.set('views', distFolder);
2424

2525
// Example Express Rest API endpoints
26-
// app.get('/api/**', (req, res) => { });
26+
// server.get('/api/**', (req, res) => { });
2727
// Serve static files from /browser
2828
server.get('*.*', express.static(distFolder, {
2929
maxAge: '1y'

integration/express-engine-ivy/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function app() {
2323
server.set('views', distFolder);
2424

2525
// Example Express Rest API endpoints
26-
// app.get('/api/**', (req, res) => { });
26+
// server.get('/api/**', (req, res) => { });
2727
// Serve static files from /browser
2828
server.get('*.*', express.static(distFolder, {
2929
maxAge: '1y'

integration/express-engine-ve/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function app() {
2323
server.set('views', distFolder);
2424

2525
// Example Express Rest API endpoints
26-
// app.get('/api/**', (req, res) => { });
26+
// server.get('/api/**', (req, res) => { });
2727
// Serve static files from /browser
2828
server.get('*.*', express.static(distFolder, {
2929
maxAge: '1y'

modules/builders/testing/hello-world-app/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function app() {
2121
server.set('views', distFolder);
2222

2323
// Example Express Rest API endpoints
24-
// app.get('/api/**', (req, res) => { });
24+
// server.get('/api/**', (req, res) => { });
2525
// Serve static files from /browser
2626
server.get('*.*', express.static(distFolder, {
2727
maxAge: '1y'

modules/express-engine/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ To use it, set the engine and then route requests to it
1212
import * as express from 'express';
1313
import { ngExpressEngine } from '@nguniversal/express-engine';
1414

15+
const app = express();
16+
1517
// Set the engine
1618
app.engine('html', ngExpressEngine({
1719
bootstrap: ServerAppModule // Give it a module to bootstrap

modules/express-engine/schematics/install/files/__serverFileName@stripTsExtension__.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function app() {
2323
server.set('views', distFolder);
2424

2525
// Example Express Rest API endpoints
26-
// app.get('/api/**', (req, res) => { });
26+
// server.get('/api/**', (req, res) => { });
2727
// Serve static files from /browser
2828
server.get('*.*', express.static(distFolder, {
2929
maxAge: '1y'

0 commit comments

Comments
 (0)