mirror of
https://github.com/strapi/strapi.git
synced 2025-07-23 00:51:17 +00:00
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],
|
||
|
})
|
||
|
);
|
||
|
}),
|
||
|
]
|
||
|
);
|