How to create custom Procedure for serverlesssQ cron provider. And call trcp router.
i want to have a Cron job which calls a handler. this handlers should check if it's authorized or not. (handler in api/cron/reportDatabase)
This will call a trcp api router, but i don't know how to secure it. Like how to create a custom procedure for it
1 Reply
I think this might be helpful
https://trpc.io/docs/server/server-side-calls
Server Side Calls | tRPC
You may need to call your procedure(s) directly from the same server they're hosted in, router.createCaller() can be used to achieve this.