feat(admin): очистка всех сканов — POST /api/admin/purge-scans + UI (NETTOPO_RESET_DB_SECRET)

Made-with: Cursor
This commit is contained in:
Луценко Андрей Анатольевич
2026-04-10 16:08:35 +10:00
parent a7f80eac9a
commit a782d36af9
7 changed files with 117 additions and 12 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ func main() {
SNMPEnabled: cfg.SNMPEnabled,
SNMPCommunity: cfg.SNMPCommunity,
})
handler := api.NewHandler(scanStore, runner)
handler := api.NewHandler(scanStore, runner, cfg.ResetDBSecret)
server := &http.Server{
Addr: cfg.HTTPAddr,