vault/ui/mirage/handlers/chroot-namespace.js
2023-11-02 12:55:09 -05:00

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'] }));
}