File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
sample/sample11-complete-sample-express Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ import { createExpressServer } from '../../src/index';
33// base directory. we use it because file in "required" in another module
44const baseDir = __dirname ;
55
6- // koa is used just as an example here. you can also use express
7- // to do it simply use createExpressServer instead of createKoaServer
6+ // express is used just as an example here. you can also use koa
7+ // to do it simply use createKoaServer instead of createExpressServer
88const app = createExpressServer ( {
99 controllers : [ baseDir + '/modules/**/controllers/*{.js,.ts}' ] ,
1010 middlewares : [ baseDir + '/modules/**/middlewares/*{.js,.ts}' ] ,
1111} ) ;
1212app . listen ( 3001 ) ;
1313
14- console . log ( 'Koa server is running on port 3001. Open http://localhost:3001/blogs/' ) ;
14+ console . log ( 'Express server is running on port 3001. Open http://localhost:3001/blogs/' ) ;
You can’t perform that action at this time.
0 commit comments