Josh 885aa13160 refactor: useRBAC hook to stop infinite loop
chore: add test setup to helper-plugin

test: add useRBAC suite

refactor: useRBAC hook to stop infinite loop

chore: shuffle around and add jsdocs
2023-06-29 11:56:36 +01:00

15 lines
276 B
JavaScript

import { rest } from 'msw';
import { setupServer } from 'msw/node';
export const server = setupServer(
...[
rest.post('/admin/permissions/check', async (req, res, ctx) => {
return res(
ctx.json({
data: [true],
})
);
}),
]
);