mirror of https://github.com/halo-dev/halo
Fixed bug #160
parent
09b47d4d28
commit
6febabc289
|
@ -59,8 +59,7 @@ public class ThemeController {
|
||||||
|
|
||||||
@PutMapping("files/content")
|
@PutMapping("files/content")
|
||||||
public void updateContentBy(@RequestParam(name = "path") String path,
|
public void updateContentBy(@RequestParam(name = "path") String path,
|
||||||
@RequestParam(name = "content") String content) {
|
@RequestBody String content) {
|
||||||
// TODO Refactor the params to body
|
|
||||||
themeService.saveTemplateContent(path, content);
|
themeService.saveTemplateContent(path, content);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue