We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9991657 commit eabc592Copy full SHA for eabc592
README.md
@@ -295,7 +295,9 @@ import {useExpressServer} from "routing-controllers";
295
let express = require("express"); // or you can import it if you have installed typings
296
let app = express(); // your created express server
297
// app.use() // you can configure it the way you want
298
-useExpressServer(app); // register created express server in routing-controllers
+useExpressServer(app, { // register created express server in routing-controllers
299
+ controllers: [UserController] // and configure it the way you need (controllers, validation, etc.)
300
+});
301
app.listen(3000); // run your express server
302
```
303
0 commit comments