MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / handler

Function handler

packages/web/src/app/api/(server)/[...slug]/route.ts:5–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { StatusCodes } from "http-status-codes"
4
5const handler = () => {
6 return serviceErrorResponse({
7 statusCode: StatusCodes.NOT_FOUND,
8 errorCode: ErrorCode.NOT_FOUND,
9 message: "This API endpoint does not exist",
10 });
11}
12
13// eslint-disable-next-line authz/require-auth-wrapper -- 404 catch-all for unknown API endpoints, returns no user data
14export { handler as GET, handler as POST, handler as PUT, handler as PATCH, handler as DELETE }

Callers 3

wrappedHandlerFunction · 0.85
apiHandler.test.tsFile · 0.85
oauthApiHandlerFunction · 0.85

Calls 1

serviceErrorResponseFunction · 0.90

Tested by

no test coverage detected