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:
@@ -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)
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user