Join Slack
Powered by
Is it possible to get a Gson instance in router fu...
# ktor
h
Hank
07/22/2020, 2:01 AM
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
Wilfred
07/22/2020, 8:31 PM
You could use DI to inject it into your routes. I use Koin for that
h
Hank
07/23/2020, 12:22 AM
Good to know, thanks for replying
👍 1
3
Views
Open in Slack
Previous
Next