diff options
author | Chocobozzz <me@florianbigard.com> | 2023-03-10 10:06:29 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-03-10 15:45:52 +0100 |
commit | 3b2844f80324bc5281f3c0269dc2dad019dd96f1 (patch) | |
tree | 3cbaf27355fe9b8408e72390da926df1c0ef1d8d | |
parent | 2c525a5466c14a345b59f324e6e0874ae88fa3df (diff) | |
download | PeerTube-3b2844f80324bc5281f3c0269dc2dad019dd96f1.tar.gz PeerTube-3b2844f80324bc5281f3c0269dc2dad019dd96f1.tar.zst PeerTube-3b2844f80324bc5281f3c0269dc2dad019dd96f1.zip |
Fix plugin guide
-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' })) |