This commit is contained in:
Gianni Carafa
2023-11-02 04:26:26 +01:00
parent baa19a89a4
commit 2c9a58fb19
8 changed files with 249 additions and 305 deletions

View File

@@ -1,9 +1,9 @@
package main
import (
"ladder/handlers"
"log"
"os"
"paywall-ladder/handlers"
"strconv"
"github.com/gofiber/fiber/v2"
@@ -18,12 +18,9 @@ func main() {
},
)
//app.Static("/", "./public")
app.Get("/", handlers.Form)
app.Get("/proxy/*", handlers.FetchSite)
app.Get("debug/*", handlers.Debug)
app.Get("debug2/*", handlers.Debug2)
app.Get("/*", handlers.ProxySite)
port := os.Getenv("PORT")