18 lines
449 B
Kotlin
18 lines
449 B
Kotlin
package be.simplenotes.config
|
|
|
|
import io.micronaut.context.annotation.Factory
|
|
import javax.inject.Singleton
|
|
|
|
@Factory
|
|
class ConfigModule {
|
|
|
|
@Singleton
|
|
internal fun dataSourceConfig(configLoader: ConfigLoader) = configLoader.dataSourceConfig
|
|
|
|
@Singleton
|
|
internal fun jwtConfig(configLoader: ConfigLoader) = configLoader.jwtConfig
|
|
|
|
@Singleton
|
|
internal fun serverConfig(configLoader: ConfigLoader) = configLoader.serverConfig
|
|
}
|