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) }))