refactor: move mergePaths() to utils.ts (#2905)

This commit is contained in:
Tim Reichen
2025-05-12 09:59:37 +02:00
committed by GitHub
parent c6d4c47e00
commit 9605cd81b5
5 changed files with 33 additions and 32 deletions
+2 -6
View File
@@ -7,12 +7,7 @@ import { DENO_DEPLOYMENT_ID } from "./runtime/build_id.ts";
import * as colors from "@std/fmt/colors";
import { type MiddlewareFn, runMiddlewares } from "./middlewares/mod.ts";
import { FreshReqContext } from "./context.ts";
import {
mergePaths,
type Method,
type Router,
UrlPatternRouter,
} from "./router.ts";
import { type Method, type Router, UrlPatternRouter } from "./router.ts";
import {
type FreshConfig,
normalizeConfig,
@@ -22,6 +17,7 @@ import { type BuildCache, ProdBuildCache } from "./build_cache.ts";
import type { ServerIslandRegistry } from "./context.ts";
import { FinishSetup, ForgotBuild } from "./finish_setup.tsx";
import { HttpError } from "./error.ts";
import { mergePaths } from "./utils.ts";
// TODO: Completed type clashes in older Deno versions
// deno-lint-ignore no-explicit-any