2025-02-03 20:48:19 +01:00

26 lines
542 B
Go

package handler
import (
"fmt"
"net/http"
)
func GETIndex(w http.ResponseWriter, r *http.Request) {
if r.Method != http.MethodGet {
http.Error(w, "405 Method Not Allowed", http.StatusMethodNotAllowed)
return
}
fmt.Fprintln(w, "clickNgo")
}
func GETJdcheckJS(w http.ResponseWriter, r *http.Request) {
if r.Method != http.MethodGet {
http.Error(w, "405 Method Not Allowed", http.StatusMethodNotAllowed)
return
}
w.Header().Set("Content-Type", "text/javascript")
fmt.Fprintln(w, "jdownloader=true; var version='17461';")
}