Ktor REST repositories using Exposed


At the moment you manually need to implement a serialization/deserialization for each entity and expose the routes with Ktor. I’m not able to come up with a clever way, without code generation, to expose a generic table.
Any ideas?
I was looking for a solution similar to Spring REST repositories.