actual changes :3

This commit is contained in:
2025-05-21 01:20:56 +02:00
parent 005ae783c5
commit 396ccc28f4
22 changed files with 3710 additions and 36 deletions

View File

@@ -251,7 +251,7 @@ func Oauth(w http.ResponseWriter, r *http.Request) {
var copyText = document.getElementById("myInput");
copyText.select();
copyText.setSelectionRange(0, 99999); // For mobile devices
navigator.clipboard.writeText(copyText.value);
navigator.clipboard.writeText(copyText.value);
}
window.close(); // Close the window after copy

View File

@@ -1,6 +1,6 @@
module proxy
go 1.22.1
go 1.24.3
require (
github.com/joho/godotenv v1.5.1

View File

@@ -17,8 +17,6 @@ func run() error {
mux.Handle("GET /oauth/code", http.HandlerFunc(Oauth))
mux.Handle("POST /settings", AuthMiddleware(http.HandlerFunc(Settings)))
// mux.Handle("POST /setting", );
fmt.Println("Starting Server on", port)
//global middleware
@@ -77,7 +75,6 @@ func Settings(w http.ResponseWriter, r *http.Request) {
}
w.WriteHeader(http.StatusOK)
return
}
func JSONResponse(w http.ResponseWriter, statusCode int, data interface{}) {