Is it possible to get a Gson instance in router fu...
# ktor
h
Is it possible to get a Gson instance in router functions since I’ve installed Gson module? Or I have to new it every time?
w
You could use DI to inject it into your routes. I use Koin for that
h
Good to know, thanks for replying
👍 1