]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix plugin guide
authorChocobozzz <me@florianbigard.com>
Fri, 10 Mar 2023 09:06:29 +0000 (10:06 +0100)
committerChocobozzz <me@florianbigard.com>
Fri, 10 Mar 2023 09:06:29 +0000 (10:06 +0100)
support/doc/plugins/guide.md

index 2cc544f1c4850221729e10bc433d782a55eccb9b..337f3d97f45a4afc02c498bf450a2dd20d5516bb 100644 (file)
@@ -290,7 +290,7 @@ You can create custom routes using an [express Router](https://expressjs.com/en/
 
 ```js
 function register ({
-  router
+  getRouter
 }) {
   const router = getRouter()
   router.get('/ping', (req, res) => res.json({ message: 'pong' }))