fix: preserve nested resume service proxy paths
This commit is contained in:
@@ -385,7 +385,9 @@ export function serviceRoutes() {
|
||||
// resumes, templates, uploads, parsing, exports, cover letters, versions,
|
||||
// restore, primary selection, and AI endpoints.
|
||||
app.all("/resume/*", async (c) => {
|
||||
const rest = c.req.path.split("/resume/")[1] ?? "";
|
||||
const marker = "/resume/";
|
||||
const markerIndex = c.req.path.indexOf(marker);
|
||||
const rest = markerIndex >= 0 ? c.req.path.slice(markerIndex + marker.length) : "";
|
||||
return proxyResumeRequest(c.req.raw, rest, c.get("userId"));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user