MCPcopy Create free account
hub / github.com/Snaacky/theindex / apiLibraries

Function apiLibraries

pages/api/libraries.ts:5–10  ·  view source on GitHub ↗
(
  req: NextApiRequest,
  res: NextApiResponse
)

Source from the content-addressed store, hash-verified

3import { NextApiRequest, NextApiResponse } from 'next'
4
5export default async function apiLibraries(
6 req: NextApiRequest,
7 res: NextApiResponse
8) {
9 res.json(await getAllCache(Types.library))
10}

Callers

nothing calls this directly

Calls 1

getAllCacheFunction · 0.90

Tested by

no test coverage detected