mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 02:02:43 +00:00
16 lines
487 B
JavaScript
16 lines
487 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import { Response } from 'miragejs';
|
|
|
|
/*
|
|
These are mocked responses to mimic what we get from the server
|
|
when within a chrooted listener (assuming the namespace exists)
|
|
*/
|
|
export default function (server) {
|
|
server.get('sys/health', () => new Response(400, {}, { errors: ['unsupported path'] }));
|
|
server.get('sys/replication/status', () => new Response(400, {}, { errors: ['unsupported path'] }));
|
|
}
|