Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
import { computed } from "vue"
import { useSetting } from "~/composables/settings"
/**
* Composable to determine mock server visibility based on experimental flags
*/
export function useMockServerVisibility() {
const ENABLE_EXPERIMENTAL_MOCK_SERVERS = useSetting(
"ENABLE_EXPERIMENTAL_MOCK_SERVERS"
)
/**
* Check if mock servers should be visible based on experimental flag
*/
const isMockServerVisible = computed(
() => ENABLE_EXPERIMENTAL_MOCK_SERVERS.value
)
return {
isMockServerVisible,
}
}