CFE-10 write mock for permission lists

This commit is contained in:
2023-11-04 11:38:54 +03:30
parent 18375f1c5c
commit d9a2425665
2 changed files with 48 additions and 32 deletions

View File

@@ -51,6 +51,22 @@ export const rolesHandler = [
),
);
}),
rest.get(GET_ROLE_LIST, (req, res, ctx) => {
return res(ctx.json({
data: [
{
id: 1,
name: "admin",
name_fa: "ادمین"
},
{
id: 2,
name: "manager",
name_fa: "مدیر"
}
]
}))
}),
rest.get(GET_PERMISSIONS_LIST, (req, res, ctx) => {
return res(ctx.json({
data: [