Skip to content

Commit 123d1ee

Browse files
author
Zoltan Tarcsay
committed
exposes the initJsRestfulRegistry method
1 parent 1b0dcb5 commit 123d1ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/express/service-registry.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ import { ISecurityContextFactory } from './descriptions';
55

66
export class ExpressServiceRegistry {
77

8-
private static initJsResutfulRegistry(app: express.Application, config?: JsRestfulRegistryConfig){
8+
static initJsRestfulRegistry(app: express.Application, config?: JsRestfulRegistryConfig){
99
app.locals.jsResutfulRegistry = app.locals.jsResutfulRegistry || new JsRestfulRegistry(app, config);
1010
}
1111

1212
static registerSecurityContextFactory(app: express.Application, factory:ISecurityContextFactory){
1313

14-
this.initJsResutfulRegistry(app);
14+
this.initJsRestfulRegistry(app);
1515

1616
app.locals.jsResutfulRegistry.registerSecurityContextFactory(factory);
1717
}
1818

1919
static registerService(app: express.Application, service:any){
2020

21-
this.initJsResutfulRegistry(app);
21+
this.initJsRestfulRegistry(app);
2222

2323
app.locals.jsResutfulRegistry.registerService(service);
2424
}

0 commit comments

Comments
 (0)