Fixed issue with sorting

This commit is contained in:
Erik Tiekstra
2021-08-18 14:55:41 +02:00
parent 456f305f0e
commit aa55ee80f4
4 changed files with 23 additions and 19 deletions

View File

@@ -9,9 +9,8 @@ server.use(middlewares);
server.use(
jsonServer.rewriter({
'/api/*': '/$1',
'*sort=fullName*': '$1sort=name$2',
'*sort=utforandeVerksamheter*': '$1sort=utforandeVerksamhet[0]$2',
'*sort=tjanster*': '$1sort=tjanst[0]$2',
'*sort=utforandeVerksamhet*': '$1sort=utforandeVerksamhet[0]$2',
'*sort=tjanst*': '$1sort=tjanst[0]$2',
'/users/:id': '/employees?ciamUserId=:id',
'/users*': '/employees$1',
'/employees*search=*': '/employees$1fullName_like=$2',