pleroma/app/soapbox/msw.js
2022-03-16 13:55:18 -05:00

13 lines
271 B
JavaScript

import { rest } from 'msw';
import { setupServer } from 'msw/node';
export const server = setupServer(
rest.get('*', (req, res, ctx) => {
return res(
ctx.status(404),
ctx.json({ error: 'Not implemented' }),
);
}),
);
export { rest } from 'msw';