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

15 lines
405 B
TypeScript
Raw Normal View History

import { defaultHandler } from "@calcom/lib/server";
import { withMiddleware } from "@lib/helpers/withMiddleware";
import { withValidQueryUserId } from "@lib/validations/shared/queryUserId";
2022-06-14 20:35:15 +00:00
export default withMiddleware("HTTP_GET_DELETE_PATCH")(
withValidQueryUserId(
2022-06-14 20:35:15 +00:00
defaultHandler({
GET: import("./_get"),
PATCH: import("./_patch"),
DELETE: import("./_delete"),
})
)
);