Migrate ingest and API paths to string IDs

This commit is contained in:
2026-02-14 20:10:23 +03:00
parent 6df92b7a69
commit 3ffdf9b0e1
42 changed files with 1958 additions and 437 deletions

View File

@@ -38,7 +38,7 @@ func (h assetComponentHandlers) handleAsset(w http.ResponseWriter, r *http.Reque
return
}
id := parseTimelineID(r.URL.Path, "/assets/")
if id == 0 {
if id == "" {
writeError(w, http.StatusNotFound, "asset timeline not found")
return
}
@@ -127,7 +127,7 @@ func (h assetComponentHandlers) handleComponent(w http.ResponseWriter, r *http.R
return
}
id := parseTimelineID(r.URL.Path, "/components/")
if id == 0 {
if id == "" {
writeError(w, http.StatusNotFound, "component timeline not found")
return
}