add indexer setting

This commit is contained in:
Simon Ding
2024-07-09 15:36:29 +08:00
parent 684846fd88
commit 232042b1e3
7 changed files with 239 additions and 49 deletions

View File

@@ -67,6 +67,7 @@ func (s *Server) Serve() error {
indexer.GET("/", HttpHandler(s.GetAllIndexers))
indexer.POST("/add", HttpHandler(s.AddTorznabInfo))
indexer.POST("/download", HttpHandler(s.SearchAndDownload))
indexer.DELETE("/del/:id", HttpHandler(s.DeleteTorznabInfo))
}
downloader := api.Group("/downloader")