diff --git a/.cursor/rules/git-manual-only.mdc b/.cursor/rules/git-manual-only.mdc new file mode 100644 index 0000000..c667e64 --- /dev/null +++ b/.cursor/rules/git-manual-only.mdc @@ -0,0 +1,11 @@ +--- +description: Git 提交与推送由用户手动处理,Agent 不得自动执行 +alwaysApply: true +--- + +# Git:仅用户手动提交与推送 + +- **禁止**在未得到用户明确指令时执行 `git commit`、`git push`、`git push -u`,也不得在任务结束后“顺手”提交或推送。 +- **禁止**为创建 PR 而自动 push;仅在用户明确要求 push / 创建 PR 且同意推送时再 push。 +- 可以使用 `git status`、`git diff`、`git log` 等只读命令协助排查与说明变更。 +- 完成代码修改后:简要说明改了什么;如需入库,提示用户自行 review 后手动 commit / push,不要代劳。 diff --git a/jog-framework/src/main/java/fun/nojava/framework/config/SecurityConfig.java b/jog-framework/src/main/java/fun/nojava/framework/config/SecurityConfig.java index 7641474..14a39a9 100644 --- a/jog-framework/src/main/java/fun/nojava/framework/config/SecurityConfig.java +++ b/jog-framework/src/main/java/fun/nojava/framework/config/SecurityConfig.java @@ -43,6 +43,7 @@ public class SecurityConfig { .authorizeHttpRequests(auth -> auth .requestMatchers("/api/auth/**").permitAll() .requestMatchers("/api/public/**").permitAll() + .requestMatchers(HttpMethod.GET, "/api/app/comment/article/**").permitAll() .requestMatchers("/api/oauth/**").permitAll() .requestMatchers("/swagger-ui/**", "/v3/api-docs/**").permitAll() .requestMatchers("/static/**", "/index.html", "/").permitAll() diff --git a/jog-frontend/index.html b/jog-frontend/index.html index 5d17e47..8b5e496 100644 --- a/jog-frontend/index.html +++ b/jog-frontend/index.html @@ -4,6 +4,7 @@ 博客系统 +
diff --git a/jog-frontend/public/favicon.ico b/jog-frontend/public/favicon.ico new file mode 100644 index 0000000..58f7c77 Binary files /dev/null and b/jog-frontend/public/favicon.ico differ