Theo's Typesafe CultTTC
Theo's Typesafe Cult11mo ago
1 reply
Tenuka

Uploadthing Path Not Found HONO

appRouter.all("/uploadthing", (ctx) => {
  return uploadthingHandlers({ ...ctx.env, ctx: ctx.executionCtx })(
    ctx.req.raw
  );
});

const api = j
  .router<{}, AppContext>()
  .basePath("/api")
  .use(corsMiddleware)
  .onError(j.defaults.errorHandler);

const appRouter = j.mergeRouters(api, {
  email: emailRouter,
  admin: adminRouter,
  ai: aiRouter,
  property: propertyRouter,
  uploadthing: uploadthingRouter,
  map: mapsRouter,
  blog: blogRouter,
  room: roomRouter,
  user: userRouter,
});


This is my AppRouter config for /api path so the url is 127.0.0.1:8787, Ive used jstack as tho explained but the hono api dosent get the uploadthing path
[wrangler:inf] GET /api/uploadthing 404 Not Found (21ms)
Was this page helpful?