Method
createPlugin
(params: {
name: string,
short_description?: string,
long_description?: string,
})
Source from the content-addressed store, hash-verified
| 196 | } |
| 197 | |
| 198 | async createPlugin(params: { |
| 199 | name: string, |
| 200 | short_description?: string, |
| 201 | long_description?: string, |
| 202 | }): Promise<ApiResult<Plugin>> { |
| 203 | return await this.put(`/api/user/plugins`, { |
| 204 | kind: "json", |
| 205 | body: params |
| 206 | }); |
| 207 | } |
| 208 | |
| 209 | async updatePluginMeta(pluginId: number, params: { |
| 210 | name?: string, |
Tested by
no test coverage detected