You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{treaty}from"@elysiajs/eden";importElysiafrom"elysia";constapp=newElysia().get("/test/index",()=>"hello").listen(3000);consteden=treaty<typeofapp>("localhost:3000",{onRequest: (path,options)=>{console.log(path)// path = /test, should be /test/index}});console.log((awaiteden.test.index.get()));// -> NOT_FOUND
the request is being sent to /test but not /test/index
The text was updated successfully, but these errors were encountered:
kai2128
changed the title
Eden treaty ignore index in routes
Eden treaty strip index in routes
Apr 15, 2024
@elysiajs/eden@1.0.11
elysia@1.0.13
index.ts:
the request is being sent to
/test
but not/test/index
The text was updated successfully, but these errors were encountered: