CFE-10 update handler msw with new route

This commit is contained in:
AmirHossein Mahmoodi
2023-09-25 11:27:35 +03:30
parent 9a60b215df
commit 9565968aaf

View File

@@ -1 +1,8 @@
export const handler = []
import {GET_USER_ROUTE} from "@/core/data/apiRoutes";
import {rest} from "msw";
export const handler = [rest.get(GET_USER_ROUTE, (req, res, ctx) => {
return res(ctx.json({
id: 10
}))
})]