https://kotlinlang.org logo
#ktor
Title
# ktor
d

dimitar_

02/17/2023, 12:47 PM
Hey, wanted to try out the KSP API and decided to create a simple library that generates code that configures Ktor routes, based on a few annotations. I’m coming from the Spring world, so of course it looks a little like Spring. You define a “controller” - which can have “Autowired” constructor parameters (anything you define in your Koin modules). And in the controller, you define your routes. The processor generates a route configuration function that you need to call from your Application. No reflection is used. More you can read here: https://github.com/dimitark/ktor-annotations If you try it out - please let me know what you think. p.s. If “promotion” is not allowed in this channel - please let me know. I’ll delete this post asap.
🎉 1
K 1