Add internal crawl endpoint without auth

For triggering priority crawls from internal network.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
primal
2026-02-01 19:59:39 -05:00
parent edf54ca212
commit e7f6be2203
+4
View File
@@ -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)
}))