MCPcopy Create free account
hub / github.com/FeatureProbe/FeatureProbe / getFromDictionary

Function getFromDictionary

ui/src/services/dictionary.ts:5–17  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

3import { ApplicationJson } from 'constants/api/contentType';
4
5export const getFromDictionary = async<T> (key: string) => {
6 const url = `${
7 API.dictionaryURI
8 .replace(':key', key)
9 }`;
10
11 return request<T>(url, {
12 method: 'GET',
13 headers: {
14 ...ApplicationJson()
15 },
16 });
17};
18
19// eslint-disable-next-line @typescript-eslint/no-explicit-any
20export const saveDictionary = async (key: string, data: any) => {

Callers 8

ProjectLayoutFunction · 0.90
UserGuideFunction · 0.90
FlowExplainFunction · 0.90
ProjectFunction · 0.90
AccessToggleFunction · 0.90
AccessEventFunction · 0.90
MetricsFunction · 0.90
DrawerFunction · 0.90

Calls 2

ApplicationJsonFunction · 0.90
requestFunction · 0.85

Tested by

no test coverage detected