Updated CVE scripts to include backfill support.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user