that's all the API create routes! + some admin UI

Signed-off-by: ari melody <ari@arimelody.me>
This commit is contained in:
ari melody 2024-08-03 15:02:01 +01:00
parent 9329aa9f60
commit 494b29def3
11 changed files with 193 additions and 19 deletions

View file

@ -25,7 +25,7 @@ func CreateTrack() http.Handler {
}
if track.Title == "" {
http.Error(w, "Track title cannot be empty", http.StatusBadRequest)
http.Error(w, "Track title cannot be empty\n", http.StatusBadRequest)
return
}