Why Are My Hono RPC Routes Not Showing Beyond $get, $post, and $url?
I have set up RPC in my Hono project and configured my routes as follows. However, when I check the available RPC methods, only
How can I make all the other defined routes accessible through RPC? Here is my current router setup: When I inspect the registered routes using: I can see that all routes are correctly registered: Despite this, only
How can I make all my defined routes accessible via RPC?
$get
, $post
, and $url
appear in the list.How can I make all the other defined routes accessible through RPC? Here is my current router setup: When I inspect the registered routes using: I can see that all routes are correctly registered: Despite this, only
$get
, $post
, and $url
appear in the available RPC method list.How can I make all my defined routes accessible via RPC?

4 Replies
It seems that .use('/*', isLoggedIn) is causing the issue.
Would it be better to apply the middleware to each router separately?
hey! what methods would you expect to have available? the only one you have registered in the snippet you shared above is
GET
i would definitely recommend using *
instead of /*
i assume isLoggedIn
is just middleware?may I ask why you're calling it like this with the rpc?

shouldn't it be directly accessible via