Files
KohakuHub/functions/api/[[path]].js
2025-10-04 12:17:52 +08:00

8 lines
250 B
JavaScript

import { proxyToAPI } from '../_proxy.js';
export async function onRequest(context) {
// Strip /api prefix if your backend doesn't expect it
// Remove the second parameter if your backend expects /api in the path
return proxyToAPI(context);
}