cal.pub0.org/pages/api/users/[userId]/index.ts

15 lines
405 B
TypeScript

import { defaultHandler } from "@calcom/lib/server";
import { withMiddleware } from "@lib/helpers/withMiddleware";
import { withValidQueryUserId } from "@lib/validations/shared/queryUserId";
export default withMiddleware("HTTP_GET_DELETE_PATCH")(
withValidQueryUserId(
defaultHandler({
GET: import("./_get"),
PATCH: import("./_patch"),
DELETE: import("./_delete"),
})
)
);