mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-27 13:58:19 +00:00
20 lines
547 B
TypeScript
20 lines
547 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {ClientPluginManifest} from '@mm-redux/types/plugins';
|
|
|
|
export interface ClientPluginsMix {
|
|
getPluginsManifests: () => Promise<ClientPluginManifest[]>;
|
|
}
|
|
|
|
const ClientPlugins = (superclass: any) => class extends superclass {
|
|
getPluginsManifests = async () => {
|
|
return this.doFetch(
|
|
`${this.getPluginsRoute()}/webapp`,
|
|
{method: 'get'},
|
|
);
|
|
};
|
|
};
|
|
|
|
export default ClientPlugins;
|