Updated CVE scripts to include backfill support.
All checks were successful
Build & Deploy Backend / build (push) Successful in 55s
Build & Deploy Backend / deploy (push) Successful in 31s

This commit is contained in:
2025-10-08 10:02:35 +08:00
parent 2517db791c
commit 80c6aae9c2
3 changed files with 59 additions and 0 deletions

View File

@@ -66,6 +66,12 @@ public class ScriptController {
return triggerScript("fetchCVE.js", "📡 CVE sync launched in background.", getCveLogFile());
}
@PreAuthorize("hasRole('ADMIN')")
@PostMapping("/fetch-cve-backfill")
public ResponseEntity<String> runCveBackfillScript(@AuthenticationPrincipal Object user) {
return triggerScript("fetchCVE_withMORE.js", "📡 CVE backfill launched - will sync back to 2002.", getCveLogFile());
}
@PreAuthorize("hasRole('ADMIN')")
@PostMapping("/fetch-kev")
public ResponseEntity<String> runKevScript(@AuthenticationPrincipal Object user) {