Can an external http client make an RPC call to a Worker?

I would like to externally make RPC calls to Workers (mostly for testing) using something like Postman or curl.
I'm hoping some general gateway like this exists...
curl -X POST https://worker-url.com \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "someMethod", "params": {"key1": "value1"}, "id": 1}'

My current hack is to implement a wrapper Worker http endpoint for each RPC call. It works, but it at takes time, and it feels ugly/redundant?
Any suggestions? Thx.
Was this page helpful?