MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / POST

Function POST

web/src/app/api/v1/web-search/route.ts:14–27  ·  view source on GitHub ↗
(req: NextRequest)

Source from the content-addressed store, hash-verified

12import { logger, loggerWithContext } from '@/util/logger'
13
14export async function POST(req: NextRequest) {
15 return postWebSearch({
16 req,
17 getUserInfoFromApiKey,
18 logger,
19 loggerWithContext,
20 trackEvent,
21 getUserUsageData,
22 consumeCreditsWithFallback,
23 fetch,
24 serverEnv: { SERPER_API_KEY: env.SERPER_API_KEY },
25 ensureSubscriberBlockGrant,
26 })
27}

Callers

nothing calls this directly

Calls 1

postWebSearchFunction · 0.90

Tested by

no test coverage detected