diff options
author | Chocobozzz <me@florianbigard.com> | 2023-03-10 10:06:29 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-03-10 10:06:29 +0100 |
commit | 4857f887f73328f2d4492eb04a8126cb7e446668 (patch) | |
tree | db8f7712895e20fe1558ef3b9e9002e7572ad204 /support/doc/plugins/guide.md | |
parent | ef19c8ae4c360b0aa9dafc61fa1523a02bbaa25f (diff) | |
download | PeerTube-4857f887f73328f2d4492eb04a8126cb7e446668.tar.gz PeerTube-4857f887f73328f2d4492eb04a8126cb7e446668.tar.zst PeerTube-4857f887f73328f2d4492eb04a8126cb7e446668.zip |
Fix plugin guide
Diffstat (limited to 'support/doc/plugins/guide.md')
-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' })) |