mirror of
https://github.com/JuLi0n21/pwa-player.git
synced 2026-04-19 15:30:05 +00:00
actual changes :3
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module proxy
|
||||
|
||||
go 1.22.1
|
||||
go 1.24.3
|
||||
|
||||
require (
|
||||
github.com/joho/godotenv v1.5.1
|
||||
|
||||
@@ -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{}) {
|
||||
|
||||
Reference in New Issue
Block a user