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:
@@ -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