small updates

This commit is contained in:
wagslane
2023-06-12 16:06:12 -06:00
parent fc8dac21d0
commit 57e5fde82f
6 changed files with 22 additions and 9 deletions

View File

@@ -51,7 +51,7 @@ func (cfg *apiConfig) handlerUsersCreate(w http.ResponseWriter, r *http.Request)
return
}
respondWithJSON(w, http.StatusOK, databaseUserToUser(user))
respondWithJSON(w, http.StatusCreated, databaseUserToUser(user))
}
func generateRandomSHA256Hash() (string, error) {