| 7 | ) |
| 8 | |
| 9 | func (p *plugin) systemApis() []pm3.Api { |
| 10 | return []pm3.Api{ |
| 11 | pm3.CreateApiWidthDoc(http.MethodGet, "/api/v1/system/_export", []string{"context"}, nil, p.exportConfigController.ExportAll), |
| 12 | pm3.CreateApiWidthDoc(http.MethodGet, "/api/v1/system/_import", []string{"context"}, nil, p.importConfigController.ImportAll), |
| 13 | |
| 14 | pm3.CreateApiWidthDoc(http.MethodGet, "/api/v1/system/general", []string{"context"}, []string{"general"}, p.settingController.Get), |
| 15 | pm3.CreateApiWidthDoc(http.MethodPost, "/api/v1/system/general", []string{"context", "body"}, nil, p.settingController.Set), |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | func (p *plugin) systemApikeyApis() []pm3.Api { |
| 20 | return []pm3.Api{ |