-
-
Notifications
You must be signed in to change notification settings - Fork 727
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Route.inject()
help in koin-ktor
#128
Comments
What I would rather see is the functions defined in To get around the limitation you face is to create a Kotlin Example:
Something else to consider is to call
|
Hello @scottsteen
This is another issue. We'll continue here about ktor Route API integration. |
For me this is not usable because the inject happens at application start and not on a http request. This is the extension method I use for now:
|
@Baresse added the extensions for |
Note: I am a Kotlin beginner
I am currently working on integrating an HTTP API using ktor, using koin-ktor. While designing my endpoints routing, I wanted to inject the dependencies at the
Route
level instead ofApplication
level. Indeed, I split myRoute
s in seperate files, one for each resource :api/Application.kt
api/v1/Users.kt
Your library implements
inject()
(& co.) helpers atApplication
level only. I was thinking about making this available atRoute
level.Here is a working implementation:
What do you think ? I would be glad to help!
The text was updated successfully, but these errors were encountered: