tRPC won't return route with function, only JSON
Hey all,
Why can I go to route 'test' and the 'This is a test!' is being returned, but when I try to go to another router called 'posts' it returns this big error, 404, meaning that it doesn't even exist, right? While the function does exist, what is it exactly looking for what I don't have?
Would love to hear from someone! 🙂
Best regards.
4 Replies
Probably because posts is a router and not a procedure, what procedures does it have on it?
Hey @Nick Lucas Thank you so much for your reply, I couldn't reply earlier, sorry. I atteched two screenshots, hopefully this gives you an idea of what it has, please let me know if this is what you asked.
So it's posts.getPosts then?
Yes, haha, thank you!