MCPcopy Create free account
hub / github.com/pollinations/pollinations / queryParams

Function queryParams

shared/observability/request-inputs.ts:88–95  ·  view source on GitHub ↗
(c: Context)

Source from the content-addressed store, hash-verified

86}
87
88function queryParams(c: Context): Record<string, string | string[]> {
89 return Object.fromEntries(
90 Object.entries(c.req.queries()).map(([key, values]) => [
91 key,
92 redactQueryParam(key, values.length === 1 ? values[0] : values),
93 ]),
94 );
95}
96
97function redactQueryParam(
98 key: string,

Callers 1

collectRequestInputsFunction · 0.85

Calls 1

redactQueryParamFunction · 0.85

Tested by

no test coverage detected