MCPcopy Create free account
hub / github.com/ShaanCoding/makeread.me / handleServiceResponse

Function handleServiceResponse

backend/src/common/utils/httpHandlers.ts:7–9  ·  view source on GitHub ↗
(serviceResponse: ServiceResponse<any>, response: Response)

Source from the content-addressed store, hash-verified

5import { ResponseStatus, ServiceResponse } from '@/common/models/serviceResponse'
6
7export const handleServiceResponse = (serviceResponse: ServiceResponse<any>, response: Response) => {
8 return response.status(serviceResponse.statusCode).send(serviceResponse)
9}
10
11export const validateRequest = (schema: ZodSchema) => (req: Request, res: Response, next: NextFunction) => {
12 try {

Callers 3

sideBar.routes.tsFile · 0.90
template.routes.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected