Skip to content

Commit 7ed7254

Browse files
committed
fix: app info
1 parent 1dbe734 commit 7ed7254

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

examples/access-control-migration/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ tutorial of building it from a dummy application is documented in
1616

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

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

2121
Additionally, this tutorial assumes that you are comfortable with certain
2222
technologies, languages and concepts.

examples/access-control-migration/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "@loopback/example-access-control-migration",
3-
"version": "1.9.5",
3+
"version": "1.0.0",
44
"description": "Tutorial example on how to migrate the access control example with LoopBack 4.",
55
"main": "index.js",
66
"engines": {
7-
"node": ">=8.9"
7+
"node": ">=10"
88
},
99
"author": "IBM Corp.",
1010
"scripts": {
@@ -51,8 +51,7 @@
5151
"@types/bcryptjs": "2.4.2",
5252
"casbin": "^3.1.0",
5353
"jsonwebtoken": "^8.5.1",
54-
"loopback-connector-rest": "^3.6.0",
55-
"path": "^0.12.7"
54+
"loopback-connector-rest": "^3.6.0"
5655
},
5756
"devDependencies": {
5857
"@loopback/build": "^3.1.1",

examples/access-control-migration/public/index.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33

44
<head>
5-
<title>@loopback/example-todo</title>
5+
<title>@loopback/example-access-control-migration</title>
66

77
<meta charset="utf-8">
88
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@@ -56,7 +56,7 @@
5656

5757
<body>
5858
<div class="info">
59-
<h1>@loopback/example-todo</h1>
59+
<h1>@loopback/example-access-control-migration</h1>
6060

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

7272
</html>
73-

examples/access-control-migration/src/application.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ export class AccessControlApplication extends BootMixin(
9797
addSecuritySpec(): void {
9898
this.api({
9999
openapi: '3.0.0',
100-
info: {title: 'access-control-example', version: '1.0.0'},
100+
info: {
101+
title: 'access-control-example',
102+
version: require('.././package.json').version,
103+
},
101104
paths: {},
102105
components: {securitySchemes: SECURITY_SCHEME_SPEC},
103106
security: [

0 commit comments

Comments
 (0)