File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
packages/server/src/example Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ import {
66 CoreApp ,
77 FileStorageAdapter ,
88 Environment ,
9- } from '../src/ index' ;
10- import { AuthStrategy } from '../src/ auth/auth.strategy' ;
11- import { ApiKeyStrategy } from '../src/ auth/apikey.strategy' ;
12- import { PublicStrategy } from '../src/ auth/public.strategy' ;
9+ } from '../index' ;
10+ import { AuthStrategy } from '../auth/auth.strategy' ;
11+ import { ApiKeyStrategy } from '../auth/apikey.strategy' ;
12+ import { PublicStrategy } from '../auth/public.strategy' ;
1313
1414const server = express ( ) ;
1515const appConfig = new AppConfig ( ) ;
Original file line number Diff line number Diff line change 77 PublicStrategy ,
88 Swagger ,
99 SwaggerConfig ,
10- } from '../src/index' ;
11-
10+ } from '../index' ;
1211const server = express ( ) ;
1312const appConfig = new AppConfig ( ) ;
1413const environment = new Environment ( ) ;
@@ -22,7 +21,7 @@ const swagger = new Swagger(
2221 appConfig . routes . swaggerSpecRoutePath
2322) ;
2423
25- let core = new CoreApp (
24+ const core = new CoreApp (
2625 appConfig ,
2726 server ,
2827 new FileStorageAdapter ( 'db.json' ) ,
@@ -36,6 +35,7 @@ const init = async () => {
3635 console . log (
3736 'JSON Server is running under port 3000. Use http://localhost:3000/ to access it'
3837 ) ;
38+
3939 server . listen ( 3000 ) ;
4040} ;
4141init ( ) ;
You can’t perform that action at this time.
0 commit comments