feat: allow to write to notes

This commit is contained in:
Max Richter
2025-10-31 14:16:32 +01:00
parent dc2cd1108e
commit 814be43be8
7 changed files with 104 additions and 3 deletions

View File

@@ -2,6 +2,7 @@ package handler
import (
"encoding/json"
"log"
"net/http"
)
@@ -10,6 +11,7 @@ type ErrorResponse struct {
}
func writeError(w http.ResponseWriter, code int, err error) {
log.Printf("error: %s", err)
writeJSON(w, code, ErrorResponse{Error: err.Error()})
}