fix: align favorite batch endpoint

This commit is contained in:
richjohnrambo
2026-08-20 23:29:10 +08:00
parent 2b3480fa5f
commit ff616b9c5d
3 changed files with 118 additions and 120 deletions
+2
View File
@@ -2705,6 +2705,8 @@ func serveIMFavoriteResource(wrt http.ResponseWriter, req *http.Request) {
}
tail := strings.Trim(strings.TrimPrefix(req.URL.Path[idx:], prefix), "/")
switch {
case tail == "batch":
serveIMFavoriteBatchCreate(wrt, req)
case tail == "batch-delete":
serveIMFavoriteBatchDelete(wrt, req)
case tail == "forward":