Migrate ingest and API paths to string IDs
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user