Open kai2128 opened 4 months ago
@elysiajs/eden@1.0.11 elysia@1.0.13
index.ts:
import { treaty } from "@elysiajs/eden"; import Elysia from "elysia"; const app = new Elysia() .get("/test/index", () => "hello") .listen(3000); const eden = treaty<typeof app>("localhost:3000", { onRequest: ( path, options ) => { console.log(path) // path = /test, should be /test/index } }); console.log((await eden.test.index.get())); // -> NOT_FOUND
the request is being sent to /test but not /test/index
/test
/test/index
@elysiajs/eden@1.0.11 elysia@1.0.13
index.ts:
the request is being sent to
/test
but not/test/index