MCPcopy Index your code
hub / github.com/simstudioai/sim / route.ts

File route.ts

apps/sim/app/api/usage/route.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { dbReplica } from '@sim/db'
2import { createLogger } from '@sim/logger'
3import { type NextRequest, NextResponse } from 'next/server'
4import { getUsageLimitContract, updateUsageLimitContract } from '@/lib/api/contracts/subscription'

Callers

nothing calls this directly

Calls 11

createLoggerFunction · 0.90
withRouteHandlerFunction · 0.90
parseRequestFunction · 0.90
getUserUsageLimitInfoFunction · 0.90
updateUserUsageLimitFunction · 0.90
errorMethod · 0.80

Tested by

no test coverage detected