Hey everyone, I’m working on my first Ktor project...
# server
a
Hey everyone, I’m working on my first Ktor project and I have noticed that I can have routes handling separated in multiple files (e.g. auth, users, settings, etc) using
routing
, but when working with request validation I can’t separate the validations in multiple files. I’m thinking to make that every server feature is isolated module and I’m not sure how to break the validations apart per module. Any ideas how to proceed? Thanks
I just realized that I can install a plugin into Application and Route. By installing
RequestValidation
into Route I can have multiple validators per Route. This is great!