What are the best practices for honojs api? #3357
Unanswered
AaronConlon
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi gays.
I want to write a api system with honojs.But I can not find some best practices code.
I want to import the validators and controllers corresponding to different routes and methods through import, but in this case the controller type needs to be defined manually. How do I define its Type Script type so that the controller can get the validator type?
code example:
I can not get the res's type here.
Beta Was this translation helpful? Give feedback.
All reactions