mirror of
https://github.com/strapi/strapi.git
synced 2025-07-23 17:10:08 +00:00

chore: add test setup to helper-plugin test: add useRBAC suite refactor: useRBAC hook to stop infinite loop chore: shuffle around and add jsdocs
15 lines
276 B
JavaScript
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],
|
|
})
|
|
);
|
|
}),
|
|
]
|
|
);
|