chg: feat: rewrite to be a torrent indexer

This commit is contained in:
2023-09-23 17:02:55 +00:00
parent c68df1ab37
commit faa721dc19
15 changed files with 711 additions and 389 deletions

View File

@@ -3,14 +3,15 @@ package main
import (
"net/http"
handler "github.com/felipemarinho97/vercel-lambdas/api"
"github.com/felipemarinho97/vercel-lambdas/api/indexers"
"github.com/felipemarinho97/vercel-lambdas/api/statusinvest"
handler "github.com/felipemarinho97/torrent-indexer/api"
"github.com/felipemarinho97/torrent-indexer/cache"
)
func main() {
redis := cache.NewRedis()
indexers := handler.NewIndexers(redis)
http.HandleFunc("/", handler.HandlerIndex)
http.HandleFunc("/statusinvest/companies", statusinvest.HandlerListCompanies)
http.HandleFunc("/indexers/comando_torrents", indexers.HandlerComandoIndexer)
err := http.ListenAndServe(":7006", nil)