Since the last update, I worked on the backend’s security and request-handling layer. I added validation schemas with Zod across the main routes, including auth, progress, trainer, and flashcards, so the API now validates params, query strings, and request bodies more consistently.
I also improved the app structure with a rate limiter, a not-found middleware, and stronger error handling for validation and database issues. On top of that, I added CORS configuration and request logging with Morgan in development.
This was also my first time using both Zod and Morgan, so this update was useful for learning how to structure validation and logging in a more organized way.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.