digeman
TTCTheo's Typesafe Cult
•Created by digeman on 7/31/2023 in #questions
Setting up and testing endpoints (for t3 stack)
Hey y'all. Fairly new to this tech stack (and next.js in general) so forgive the potential ignorance of the question, but i haven't seemed to find any clear answers on this (or i just know too little).
Anywhos, the thing i'm wondering is can i define/test "traditional" endpoints using the api/routers way, and how does that work?
Eg. i would like to create a getUserById get endpoint, and a createUser endpoint, and then try calling them externally (e.g. via postman, or another website, etc.) How do you go about doing this?
The reason for me wanting to do the above is i'm thinking about potentially having some api calls on the app that can be called externally from other sites.
Thanks in advance!
5 replies