Nuxt module for oRPC
I am trying to create a nuxt module which would register the catch all event handler, but I am having hard time to register the routers in it. Anyone has idea how to achieve this?
And the handler:
On the project side, I am registering it in a server pluginI can see that:
Registering router for module: todos
Registered 6 schemas for module: todos
Built combined router with modules: todos
But on actual requests I see:
RPC Handler - Handling oRPC request: POST /rpc/todos/list
Built combined router with modules:
Available router modules: []
So somewhere I lost the registered items, I have tried with useRuntimConfig, same happens. What clears it between the server plugin and the request?
And the handler:
On the project side, I am registering it in a server pluginI can see that:
But on actual requests I see:
So somewhere I lost the registered items, I have tried with useRuntimConfig, same happens. What clears it between the server plugin and the request?
