Fixing issue with app import, supporting old search API.

This commit is contained in:
mike12345567 2021-06-21 22:29:32 +01:00
parent abc5a6687c
commit 9f520ae8f3
1 changed files with 6 additions and 0 deletions

View File

@ -38,6 +38,12 @@ router
authorized(PermissionTypes.TABLE, PermissionLevels.READ),
rowController.search
)
// DEPRECATED - this is an old API, but for backwards compat it needs to be
// supported still
.post("/api/search/:tableId/rows",
paramResource("tableId"),
authorized(PermissionTypes.TABLE, PermissionLevels.READ),
rowController.search)
.post(
"/api/:tableId/rows",
paramResource("tableId"),