Drop /api prefix from endpoints

pull/1/head
maru 11 months ago
parent f215a31e92
commit 445bc42e6f
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D

@ -42,15 +42,15 @@ func main() {
} }
// account // account
http.HandleFunc("/api/account/info", api.HandleAccountInfo) http.HandleFunc("/account/info", api.HandleAccountInfo)
http.HandleFunc("/api/account/register", api.HandleAccountRegister) http.HandleFunc("/account/register", api.HandleAccountRegister)
http.HandleFunc("/api/account/login", api.HandleAccountLogin) http.HandleFunc("/account/login", api.HandleAccountLogin)
http.HandleFunc("/api/account/logout", api.HandleAccountLogout) http.HandleFunc("/account/logout", api.HandleAccountLogout)
// savedata // savedata
http.HandleFunc("/api/savedata/get", api.HandleSavedataGet) http.HandleFunc("/savedata/get", api.HandleSavedataGet)
http.HandleFunc("/api/savedata/update", api.HandleSavedataUpdate) http.HandleFunc("/savedata/update", api.HandleSavedataUpdate)
http.HandleFunc("/api/savedata/delete", api.HandleSavedataDelete) http.HandleFunc("/savedata/delete", api.HandleSavedataDelete)
err = http.Serve(listener, nil) err = http.Serve(listener, nil)
if err != nil { if err != nil {

Loading…
Cancel
Save