diff --git a/src/main/java/run/halo/app/controller/admin/api/ThemeController.java b/src/main/java/run/halo/app/controller/admin/api/ThemeController.java index aa00c729f..3e8f28d6b 100644 --- a/src/main/java/run/halo/app/controller/admin/api/ThemeController.java +++ b/src/main/java/run/halo/app/controller/admin/api/ThemeController.java @@ -165,7 +165,7 @@ public class ThemeController { return themeService.upload(file); } - @PutMapping("upload/{themeId}") + @PostMapping("upload/{themeId}") @ApiOperation("Upgrades theme by file") public ThemeProperty updateThemeByUpload(@PathVariable("themeId") String themeId, @RequestPart("file") MultipartFile file) {