refactor: ServerContext type import

This commit is contained in:
Ritesh Ghosh
2025-05-25 22:51:41 +05:30
parent 5118a2543d
commit ce03d5939d
+1 -1
View File
@@ -2,7 +2,7 @@ import { env } from "../config/env.js";
import { AniwatchAPICache, cache } from "../config/cache.js"; import { AniwatchAPICache, cache } from "../config/cache.js";
import type { BlankInput } from "hono/types"; import type { BlankInput } from "hono/types";
import type { Context, MiddlewareHandler } from "hono"; import type { Context, MiddlewareHandler } from "hono";
import type { ServerContext } from "../config/variables.js"; import type { ServerContext } from "../config/context.js";
// Define middleware to add Cache-Control header // Define middleware to add Cache-Control header
export const cacheControl: MiddlewareHandler = async (c, next) => { export const cacheControl: MiddlewareHandler = async (c, next) => {