You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to put variables in url without '?' Like: Mock.mock('api/users/@userId, 'PUT', updateUser);
'@userid' is variable that I need in the updateUser function
Thanks (:
The text was updated successfully, but these errors were encountered:
I found you can use /api/users/[0-9] as optional url match and get id from body (if you passed it with request).
But there should be a better solution to get id directly from url.
Hi,
Is there a way to put variables in url without '?' Like:
Mock.mock('api/users/@userId, 'PUT', updateUser);
'@userid' is variable that I need in the updateUser function
Thanks (:
The text was updated successfully, but these errors were encountered: