Files
mealie/frontend/server/routes/openapi.json.ts
2025-06-19 17:09:12 +00:00

10 lines
246 B
TypeScript

import { joinURL } from "ufo";
export default defineEventHandler(async (event) => {
const apiUrl = useRuntimeConfig().apiUrl; // 'http://localhost:9000'
const target = joinURL(apiUrl, event.path);
return proxyRequest(event, target);
});