mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Change plugin models names
This commit is contained in:
parent
5f189c9c85
commit
9ae88819c2
14 changed files with 50 additions and 41 deletions
|
@ -25,7 +25,7 @@ import { ManagePlugin } from '../../../shared/models/plugins/manage-plugin.model
|
|||
import { logger } from '../../helpers/logger'
|
||||
import { listAvailablePluginsFromIndex } from '../../lib/plugins/plugin-index'
|
||||
import { PeertubePluginIndexList } from '../../../shared/models/plugins/peertube-plugin-index-list.model'
|
||||
import { RegisteredSettings } from '../../../shared/models/plugins/register-setting.model'
|
||||
import { RegisteredServerSettings } from '../../../shared/models/plugins/register-server-setting.model'
|
||||
|
||||
const pluginRouter = express.Router()
|
||||
|
||||
|
@ -164,7 +164,7 @@ async function uninstallPlugin (req: express.Request, res: express.Response) {
|
|||
function getPluginRegisteredSettings (req: express.Request, res: express.Response) {
|
||||
const settings = PluginManager.Instance.getRegisteredSettings(req.params.npmName)
|
||||
|
||||
const json: RegisteredSettings = { settings }
|
||||
const json: RegisteredServerSettings = { settings }
|
||||
|
||||
return res.json(json)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue