Welcome to mirror list, hosted at ThFree Co, Russian Federation.

404.js « routes « mock_server « test_helpers « frontend_integration « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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);
    });
  });
};