aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/plugins.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-24 11:17:42 +0200
committerChocobozzz <me@florianbigard.com>2019-07-24 11:17:42 +0200
commit9ae88819c202a6ce4a36b56506f508a5603e8eab (patch)
tree4936990dff918ceabe835dfa7192e5e4c6211dc6 /server/controllers/api/plugins.ts
parent5f189c9c85449951254646ddf6cd6c84bc4c06ff (diff)
downloadPeerTube-9ae88819c202a6ce4a36b56506f508a5603e8eab.tar.gz
PeerTube-9ae88819c202a6ce4a36b56506f508a5603e8eab.tar.zst
PeerTube-9ae88819c202a6ce4a36b56506f508a5603e8eab.zip
Change plugin models names
Diffstat (limited to 'server/controllers/api/plugins.ts')
-rw-r--r--server/controllers/api/plugins.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/plugins.ts b/server/controllers/api/plugins.ts
index de58a7350..86384ee27 100644
--- a/server/controllers/api/plugins.ts
+++ b/server/controllers/api/plugins.ts
@@ -25,7 +25,7 @@ import { ManagePlugin } from '../../../shared/models/plugins/manage-plugin.model
25import { logger } from '../../helpers/logger' 25import { logger } from '../../helpers/logger'
26import { listAvailablePluginsFromIndex } from '../../lib/plugins/plugin-index' 26import { listAvailablePluginsFromIndex } from '../../lib/plugins/plugin-index'
27import { PeertubePluginIndexList } from '../../../shared/models/plugins/peertube-plugin-index-list.model' 27import { PeertubePluginIndexList } from '../../../shared/models/plugins/peertube-plugin-index-list.model'
28import { RegisteredSettings } from '../../../shared/models/plugins/register-setting.model' 28import { RegisteredServerSettings } from '../../../shared/models/plugins/register-server-setting.model'
29 29
30const pluginRouter = express.Router() 30const pluginRouter = express.Router()
31 31
@@ -164,7 +164,7 @@ async function uninstallPlugin (req: express.Request, res: express.Response) {
164function getPluginRegisteredSettings (req: express.Request, res: express.Response) { 164function getPluginRegisteredSettings (req: express.Request, res: express.Response) {
165 const settings = PluginManager.Instance.getRegisteredSettings(req.params.npmName) 165 const settings = PluginManager.Instance.getRegisteredSettings(req.params.npmName)
166 166
167 const json: RegisteredSettings = { settings } 167 const json: RegisteredServerSettings = { settings }
168 168
169 return res.json(json) 169 return res.json(json)
170} 170}