fix: missing path parameter in OpenAPI route for fetchStreamUrl
Summary: Test Plan:
This commit is contained in:
@@ -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": {
|
||||
|
||||
10
src/types/anilist-graphql.d.ts
vendored
10
src/types/anilist-graphql.d.ts
vendored
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user