Method
addPluginImage
(pluginId: number, data: any)
Source from the content-addressed store, hash-verified
| 255 | |
| 256 | // data should be a FormData, but this wrapper don't have DOM libs |
| 257 | async addPluginImage(pluginId: number, data: any) { |
| 258 | return await this.post(`/api/user/plugins/${pluginId}/images`, { |
| 259 | kind: "custom", |
| 260 | body: data |
| 261 | }) |
| 262 | } |
| 263 | |
| 264 | async deletePluginImage(pluginId: number, imageId: string) { |
| 265 | return await this.delete(`/api/user/plugins/${pluginId}/images/${imageId}`) |
Tested by
no test coverage detected