diff --git a/pokerogue-server.go b/pokerogue-server.go index 2d1032a..9472b1e 100644 --- a/pokerogue-server.go +++ b/pokerogue-server.go @@ -42,15 +42,15 @@ func main() { } // account - http.HandleFunc("/api/account/info", api.HandleAccountInfo) - http.HandleFunc("/api/account/register", api.HandleAccountRegister) - http.HandleFunc("/api/account/login", api.HandleAccountLogin) - http.HandleFunc("/api/account/logout", api.HandleAccountLogout) + http.HandleFunc("/account/info", api.HandleAccountInfo) + http.HandleFunc("/account/register", api.HandleAccountRegister) + http.HandleFunc("/account/login", api.HandleAccountLogin) + http.HandleFunc("/account/logout", api.HandleAccountLogout) // savedata - http.HandleFunc("/api/savedata/get", api.HandleSavedataGet) - http.HandleFunc("/api/savedata/update", api.HandleSavedataUpdate) - http.HandleFunc("/api/savedata/delete", api.HandleSavedataDelete) + http.HandleFunc("/savedata/get", api.HandleSavedataGet) + http.HandleFunc("/savedata/update", api.HandleSavedataUpdate) + http.HandleFunc("/savedata/delete", api.HandleSavedataDelete) err = http.Serve(listener, nil) if err != nil {