From 445bc42e6fc55bf926a7fef2149f4ceeeee08d3a Mon Sep 17 00:00:00 2001 From: maru Date: Thu, 28 Dec 2023 20:08:11 -0500 Subject: [PATCH] Drop /api prefix from endpoints --- pokerogue-server.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 {