diff options
Diffstat (limited to 'support')
-rw-r--r-- | support/doc/plugins/guide.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/doc/plugins/guide.md b/support/doc/plugins/guide.md index 2cc544f1c..337f3d97f 100644 --- a/support/doc/plugins/guide.md +++ b/support/doc/plugins/guide.md | |||
@@ -290,7 +290,7 @@ You can create custom routes using an [express Router](https://expressjs.com/en/ | |||
290 | 290 | ||
291 | ```js | 291 | ```js |
292 | function register ({ | 292 | function register ({ |
293 | router | 293 | getRouter |
294 | }) { | 294 | }) { |
295 | const router = getRouter() | 295 | const router = getRouter() |
296 | router.get('/ping', (req, res) => res.json({ message: 'pong' })) | 296 | router.get('/ping', (req, res) => res.json({ message: 'pong' })) |