feat: add release date sorting options and internationalization support

This commit is contained in:
2025-12-07 20:41:49 +08:00
parent 5a5c2edfda
commit 2767f8a30f
6 changed files with 15 additions and 1 deletions

View File

@@ -109,7 +109,7 @@ func handleListResources(c fiber.Ctx) error {
if err != nil {
return model.NewRequestError("Invalid sort parameter")
}
if sortInt < 0 || sortInt > 5 {
if sortInt < 0 || sortInt > 7 {
return model.NewRequestError("Sort parameter out of range")
}
sort := model.RSort(sortInt)