chg: feat: rewrite to be a torrent indexer
This commit is contained in:
9
main.go
9
main.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user