blob: 38742087675aea7c21e5b6d18ffe8e24901ece16 (
plain)
1
2
3
4
5
6
7
8
9
10
|
import { Response } from 'miragejs';
import { HTTP_STATUS_NOT_FOUND } from '~/lib/utils/http_status';
export default (server) => {
['get', 'post', 'put', 'delete', 'patch'].forEach((method) => {
server[method]('*', () => {
return new Response(HTTP_STATUS_NOT_FOUND);
});
});
};
|