Skip to content

Commit

Permalink
chore(examples/simple-express-rest-api): update example to use new ex…
Browse files Browse the repository at this point in the history
…press module

supports #24
  • Loading branch information
Daniel Schaffer committed Mar 1, 2019
1 parent bf46773 commit f15ae54
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _examples/simple-express-rest-api/src/server.container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const server = new Container({
LoggingModule.use(ConsoleLogListener),

// MVC
MvcExpressModule.withDefaults().config({ port: parseInt(process.env.PORT, 10) || DEFAULT_SERVER_PORT }),
MvcExpressModule.config({ port: parseInt(process.env.PORT, 10) || DEFAULT_SERVER_PORT }),
MvcViewModule
.engine('pug', PugViewEngine)
.engine('ejs', EjsViewEngine),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<li><a href="/view/explicit-ejs">EJS Explicit View Resolution</a></li>
</ul>

<p>Set a value in the <code>content</code> querystring key to test binding pug locals.</p>
<p>Set a value in the <code>content</code> querystring key to test binding EJS locals.</p>

<% if (query.content) { %>
<h2>Your Content</h2>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
"update-package-configs": "builder update-configs",
"update-packages": "builder npm update",
"build": "builder build",
"test": "mocha $NODE_DEBUG_OPTION",
"test": "mocha",
"lint": "eslint . --ext js,ts",
"lint:fix": "npm run lint -- --fix",
"precoverage": "rimraf coverage .nyc_output",
"coverage": "nyc npm test",
"coverage": "nyc mocha",
"coverage-report": "nyc report --reporter=text-lcov | coveralls",
"coverage:watch": "nyc npm test -- --watch"
},
Expand Down

0 comments on commit f15ae54

Please sign in to comment.