fix: missing path parameter in OpenAPI route for fetchStreamUrl

Summary:

Test Plan:
This commit is contained in:
2024-05-30 23:01:48 -04:00
parent c0ef6838fc
commit d2645028c5
2 changed files with 7 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ import { OpenAPIHono, createRoute, z } from "@hono/zod-openapi";
import { readEnvVariable } from "~/libs/readEnvVariable";
import type { Env } from "~/types/env";
import {
AniListIdQuerySchema,
ErrorResponse,
ErrorResponseSchema,
SuccessResponseSchema,
@@ -21,6 +22,7 @@ const route = createRoute({
method: "post",
path: "/{aniListId}/url",
request: {
params: z.object({ aniListId: AniListIdQuerySchema }),
body: {
content: {
"application/json": {

View File

@@ -1,3 +1,5 @@
import * as gqlTada from "gql.tada";
/* eslint-disable */
/* prettier-ignore */
@@ -203,10 +205,8 @@ export type introspection = {
};
};
import * as gqlTada from 'gql.tada';
declare module 'gql.tada' {
declare module "gql.tada" {
interface setupSchema {
introspection: introspection
introspection: introspection;
}
}