File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed
examples/access-control-migration Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ tutorial of building it from a dummy application is documented in
1616
1717First, 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
2121Additionally, this tutorial assumes that you are comfortable with certain
2222technologies, languages and concepts.
Original file line number Diff line number Diff line change 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" : {
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" ,
Original file line number Diff line number Diff line change 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 ">
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-
Original file line number Diff line number Diff 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 : [
You can’t perform that action at this time.
0 commit comments