Skip to content

Commit

Permalink
fix: app info
Browse files Browse the repository at this point in the history
  • Loading branch information
jannyHou committed Feb 25, 2020
1 parent 1dbe734 commit 7ed7254
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/access-control-migration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ tutorial of building it from a dummy application is documented in

First, you'll need to install a supported version of Node:

- [Node.js](https://nodejs.org/en/) at v8.9 or greater
- [Node.js](https://nodejs.org/en/) at v10.19.0 or greater

Additionally, this tutorial assumes that you are comfortable with certain
technologies, languages and concepts.
Expand Down
7 changes: 3 additions & 4 deletions examples/access-control-migration/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@loopback/example-access-control-migration",
"version": "1.9.5",
"version": "1.0.0",
"description": "Tutorial example on how to migrate the access control example with LoopBack 4.",
"main": "index.js",
"engines": {
"node": ">=8.9"
"node": ">=10"
},
"author": "IBM Corp.",
"scripts": {
Expand Down Expand Up @@ -51,8 +51,7 @@
"@types/bcryptjs": "2.4.2",
"casbin": "^3.1.0",
"jsonwebtoken": "^8.5.1",
"loopback-connector-rest": "^3.6.0",
"path": "^0.12.7"
"loopback-connector-rest": "^3.6.0"
},
"devDependencies": {
"@loopback/build": "^3.1.1",
Expand Down
5 changes: 2 additions & 3 deletions examples/access-control-migration/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">

<head>
<title>@loopback/example-todo</title>
<title>@loopback/example-access-control-migration</title>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
Expand Down Expand Up @@ -56,7 +56,7 @@

<body>
<div class="info">
<h1>@loopback/example-todo</h1>
<h1>@loopback/example-access-control-migration</h1>

<h3>OpenAPI spec: <a href="/openapi.json">/openapi.json</a></h3>
<h3>API Explorer: <a href="/explorer">/explorer</a></h3>
Expand All @@ -70,4 +70,3 @@ <h3>API Explorer: <a href="/explorer">/explorer</a></h3>
</body>

</html>

5 changes: 4 additions & 1 deletion examples/access-control-migration/src/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ export class AccessControlApplication extends BootMixin(
addSecuritySpec(): void {
this.api({
openapi: '3.0.0',
info: {title: 'access-control-example', version: '1.0.0'},
info: {
title: 'access-control-example',
version: require('.././package.json').version,
},
paths: {},
components: {securitySchemes: SECURITY_SCHEME_SPEC},
security: [
Expand Down

0 comments on commit 7ed7254

Please sign in to comment.