diff --git a/adminSiteServer/apiRoutes/redirects.ts b/adminSiteServer/apiRoutes/redirects.ts index 44452fe026..85590c5a85 100644 --- a/adminSiteServer/apiRoutes/redirects.ts +++ b/adminSiteServer/apiRoutes/redirects.ts @@ -1,15 +1,16 @@ import { DbPlainChartSlugRedirect, JsonError } from "@ourworldindata/types" -import { getRedirects } from "../../baker/redirects.js" import { redirectWithSourceExists, getChainedRedirect, getRedirectById, + getRedirects, } from "../../db/model/Redirect.js" import { expectInt } from "../../serverUtils/serverUtil.js" import { triggerStaticBuild } from "./routeUtils.js" import * as db from "../../db/db.js" import { Request } from "../authentication.js" import e from "express" + export async function handleGetSiteRedirects( req: Request, res: e.Response>,