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

@@ -49,5 +49,5 @@ func (cfg *apiConfig) handlerNotesCreate(w http.ResponseWriter, r *http.Request,
respondWithError(w, http.StatusNotFound, "Couldn't get note")
return
}
respondWithJSON(w, http.StatusOK, databaseNoteToNote(note))
respondWithJSON(w, http.StatusCreated, databaseNoteToNote(note))
}