Skip to content

Commit

Permalink
fixing conflicting endpoint keys
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrohr committed Feb 3, 2025
1 parent 31ebb6a commit d5e7441
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,19 +237,19 @@ async function findPhenotypesFromCodingVariantSearch (input: paramsFormatType):
return await ((await db.query(query)).all())
}

const variantsFromPhenotypes = publicProcedure
const codingVariantsFromPhenotypes = publicProcedure
.meta({ openapi: { method: 'GET', path: '/phenotypes/coding-variants', description: descriptions.phenotypes_coding_variants } })
.input((z.object({ phenotype_id: z.string().trim().optional(), phenotype_name: z.string().trim().optional() }).merge(edgeQueryFormat).merge(commonHumanEdgeParamsFormat)))
.output(z.array(OutputFormat))
.query(async ({ input }) => await findCodingVariantsFromPhenotypesSearch(input))

const phenotypesFromVariants = publicProcedure
const phenotypesFromCodingVariants = publicProcedure
.meta({ openapi: { method: 'GET', path: '/coding-variants/phenotypes', description: descriptions.coding_variants_phenotypes } })
.input(fromCodingVariantsQueryFormat.merge(edgeQueryFormat).merge(commonHumanEdgeParamsFormat))
.output(z.array(OutputFormat))
.query(async ({ input }) => await findPhenotypesFromCodingVariantSearch(input))

export const codingVariantsPhenotypesRouters = {
variantsFromPhenotypes,
phenotypesFromVariants
codingVariantsFromPhenotypes,
phenotypesFromCodingVariants
}

0 comments on commit d5e7441

Please sign in to comment.