repl.it
@mat1/

hypixel skyblock redirect

Go

No description

fork
loading
Files
  • main.go
  • go.mod
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package main

import (
	"fmt"
	"log"
	"net/http"
)


func main() {
	http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
		fmt.Printf("%s\n", r.URL.String())

		http.Redirect(w, r, "https://skyblock.matdoes.dev" + r.URL.String(), http.StatusTemporaryRedirect)
	})
	fmt.Printf("started\n")
	log.Fatal(http.ListenAndServe(":8080", nil))
}