From e7f6be2203fde974bc410c252eca1a44924035f0 Mon Sep 17 00:00:00 2001 From: primal Date: Sun, 1 Feb 2026 19:59:39 -0500 Subject: [PATCH] Add internal crawl endpoint without auth For triggering priority crawls from internal network. Co-Authored-By: Claude Opus 4.5 --- routes.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/routes.go b/routes.go index 3ae2e0b..f486094 100644 --- a/routes.go +++ b/routes.go @@ -121,6 +121,10 @@ func (c *Crawler) StartDashboard(addr string) error { http.HandleFunc("/api/priorityCrawl", withAuth(func(w http.ResponseWriter, r *http.Request) { c.handleAPIPriorityCrawl(w, r) })) + // Internal crawl endpoint (no auth) - not exposed via traefik + http.HandleFunc("/internal/crawl", func(w http.ResponseWriter, r *http.Request) { + c.handleAPIPriorityCrawl(w, r) + }) http.HandleFunc("/api/checkFeed", withAuth(func(w http.ResponseWriter, r *http.Request) { c.handleAPICheckFeed(w, r) }))