Skip to content

Commit eabc592

Browse files
authored
Update readme - add options to useExpressServer
1 parent 9991657 commit eabc592

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,9 @@ import {useExpressServer} from "routing-controllers";
295295
let express = require("express"); // or you can import it if you have installed typings
296296
let app = express(); // your created express server
297297
// app.use() // you can configure it the way you want
298-
useExpressServer(app); // register created express server in routing-controllers
298+
useExpressServer(app, { // register created express server in routing-controllers
299+
controllers: [UserController] // and configure it the way you need (controllers, validation, etc.)
300+
});
299301
app.listen(3000); // run your express server
300302
```
301303

0 commit comments

Comments
 (0)