2022-04-21 15:14:49 -03:00
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
|
|
handler "github.com/felipemarinho97/vercel-lambdas/api"
|
2023-09-22 23:50:22 +00:00
|
|
|
"github.com/felipemarinho97/vercel-lambdas/api/indexers"
|
2022-04-21 15:14:49 -03:00
|
|
|
"github.com/felipemarinho97/vercel-lambdas/api/statusinvest"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
|
http.HandleFunc("/", handler.HandlerIndex)
|
|
|
|
|
http.HandleFunc("/statusinvest/companies", statusinvest.HandlerListCompanies)
|
2023-09-22 23:50:22 +00:00
|
|
|
http.HandleFunc("/indexers/comando_torrents", indexers.HandlerComandoIndexer)
|
2022-04-21 15:14:49 -03:00
|
|
|
|
|
|
|
|
err := http.ListenAndServe(":7006", nil)
|
|
|
|
|
if err != nil {
|
|
|
|
|
panic(err)
|
|
|
|
|
}
|
|
|
|
|
}
|