File tree 1 file changed +3
-3
lines changed
sample/sample11-complete-sample-express
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';
3
3
// base directory. we use it because file in "required" in another module
4
4
const baseDir = __dirname ;
5
5
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
8
8
const app = createExpressServer ( {
9
9
controllers : [ baseDir + '/modules/**/controllers/*{.js,.ts}' ] ,
10
10
middlewares : [ baseDir + '/modules/**/middlewares/*{.js,.ts}' ] ,
11
11
} ) ;
12
12
app . listen ( 3001 ) ;
13
13
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