master:修改获取文件内容的方式;

pull/1121/head
liujiang 2025-11-14 17:18:20 +08:00
parent e5f8127d12
commit 1c0d9c1245
1 changed files with 2 additions and 2 deletions

View File

@ -252,8 +252,8 @@ public class CommonController {
}
@ApiOperation("获取html内容")
@GetMapping("/html/content/{title}")
public String getHtmlContent(@PathVariable("title") String title, HttpServletResponse response) {
@GetMapping("/html/content")
public String getHtmlContent(@RequestParam("title") String title, HttpServletResponse response) {
response.setHeader("Content-Security-Policy", "frame-ancestors *");
return htmlService.getHtmlContent(title);
}