Add support for watch settings in hello world
This commit is contained in:
parent
070208e8d7
commit
fc9be54433
@ -7,7 +7,8 @@ async function register ({
|
|||||||
videoCategoryManager,
|
videoCategoryManager,
|
||||||
videoLicenceManager,
|
videoLicenceManager,
|
||||||
videoLanguageManager,
|
videoLanguageManager,
|
||||||
registerExternalAuth
|
registerExternalAuth,
|
||||||
|
peertubeHelpers
|
||||||
}) {
|
}) {
|
||||||
const defaultAdmin = 'PeerTube admin'
|
const defaultAdmin = 'PeerTube admin'
|
||||||
|
|
||||||
@ -74,6 +75,10 @@ async function register ({
|
|||||||
videoLicenceManager.addLicence(42, 'Best licence')
|
videoLicenceManager.addLicence(42, 'Best licence')
|
||||||
videoLicenceManager.deleteLicence(7) // Public domain
|
videoLicenceManager.deleteLicence(7) // Public domain
|
||||||
|
|
||||||
|
settingsManager.onSettingsChange(settings => {
|
||||||
|
peertubeHelpers.logger.info('Settings changed!', { settings })
|
||||||
|
})
|
||||||
|
|
||||||
const router = getRouter()
|
const router = getRouter()
|
||||||
router.get('/ping', (req, res) => res.json({ message: 'pong' }))
|
router.get('/ping', (req, res) => res.json({ message: 'pong' }))
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "peertube-plugin-hello-world",
|
"name": "peertube-plugin-hello-world",
|
||||||
"version": "0.0.16",
|
"version": "0.0.17",
|
||||||
"description": "Hello world PeerTube plugin example",
|
"description": "Hello world PeerTube plugin example",
|
||||||
"engine": {
|
"engine": {
|
||||||
"peertube": ">=1.3.0"
|
"peertube": ">=2.2.0"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"peertube",
|
"peertube",
|
||||||
|
Loading…
Reference in New Issue
Block a user