mirror of
https://github.com/simon-ding/polaris.git
synced 2026-04-21 03:07:30 +08:00
update
This commit is contained in:
@@ -64,12 +64,14 @@ func (s *Server) Serve() error {
|
||||
}
|
||||
indexer := api.Group("/indexer")
|
||||
{
|
||||
indexer.GET("/", HttpHandler(s.GetAllIndexers))
|
||||
indexer.POST("/add", HttpHandler(s.AddTorznabInfo))
|
||||
indexer.POST("/download", HttpHandler(s.SearchAndDownload))
|
||||
}
|
||||
|
||||
downloader := api.Group("/downloader")
|
||||
{
|
||||
downloader.GET("/", HttpHandler(s.GetAllDonloadClients))
|
||||
downloader.POST("/add", HttpHandler(s.AddDownloadClient))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user