Scheduling infrastructure for absolutely everyone.
Removing unneeded endpoint (#8280)
Leo Giovanetti0681359bf357
diff --git a/apps/web/calendso.yaml b/apps/web/calendso.yamlindex 09da00cfe34..5d01b1cd8c2 100644--- a/apps/web/calendso.yaml+++ b/apps/web/calendso.yaml@@ -103,59 +103,6 @@ paths:summary: Reset a user's passwordtags:- Authentication- "/api/availability/{user}?dateFrom={dateFrom}&dateTo={dateTo}":- get:- description: "Gets the busy times for a particular user, by username."- summary: Gets the busy times for a user- tags:- - Availability- responses:- "200":- description: OK- content:- application/json:- schema:- type: array- description: ""- minItems: 1- uniqueItems: true- x-examples:- example-1:- - start: "Fri, 03 Sep 2021 17:00:00 GMT"- end: "Fri, 03 Sep 2021 17:40:00 GMT"- items:- type: object- properties:- start:- type: string- minLength: 1- end:- type: string- minLength: 1- required:- - start- - end- "500":- description: Internal Server Error- parameters:- - schema:- type: string- name: user- in: path- required: true- description: The username of who you want to check availability for- - schema:- type: string- name: dateFrom- in: path- required: true- description: The timestamp of which time you want to get busy times from- - schema:- type: string- name: dateTo- in: path- required: true- description: The timestamp of which time you want to get busy times until/api/availability/calendar:get:description: Gets the user's selected calendars.diff --git a/apps/web/pages/api/availability/[user].ts b/apps/web/pages/api/availability/[user].tsdeleted file mode 100644index 7fd6fd95d1e..00000000000--- a/apps/web/pages/api/availability/[user].ts+++ /dev/null@@ -1,29 +0,0 @@-import type { NextApiRequest } from "next";-import { z } from "zod";--import { getUserAvailability } from "@calcom/core/getUserAvailability";-import { defaultResponder } from "@calcom/lib/server";-import { stringOrNumber } from "@calcom/prisma/zod-utils";--const availabilitySchema = z.object({- user: z.string(),- dateFrom: z.string(),- dateTo: z.string(),- eventTypeId: stringOrNumber.optional(),-});--/**- * @deprecated Use TRCP's viewer.availability.user- */--async function handler(req: NextApiRequest) {- const { user: username, eventTypeId, dateTo, dateFrom } = availabilitySchema.parse(req.query);- return getUserAvailability({- username,- dateFrom,- dateTo,- eventTypeId,- });-}--export default defaultResponder(handler);