Remove ktor locations
This commit is contained in:
parent
1c8c7ba8d7
commit
c7b29f2d47
@ -71,11 +71,6 @@
|
|||||||
<artifactId>ktor-server-core</artifactId>
|
<artifactId>ktor-server-core</artifactId>
|
||||||
<version>${ktor_version}</version>
|
<version>${ktor_version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>io.ktor</groupId>
|
|
||||||
<artifactId>ktor-locations</artifactId>
|
|
||||||
<version>${ktor_version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.ktor</groupId>
|
<groupId>io.ktor</groupId>
|
||||||
<artifactId>ktor-jackson</artifactId>
|
<artifactId>ktor-jackson</artifactId>
|
||||||
|
|||||||
@ -28,8 +28,7 @@ abstract class KodeinController(
|
|||||||
this@registerRoutes.routes()
|
this@registerRoutes.routes()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
route(path) {
|
route(path) {
|
||||||
this@registerRoutes.routes()
|
this@registerRoutes.routes()
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,7 +6,6 @@ import org.kodein.di.Kodein
|
|||||||
import org.kodein.di.KodeinAware
|
import org.kodein.di.KodeinAware
|
||||||
|
|
||||||
fun Application.features() {
|
fun Application.features() {
|
||||||
locationFeature()
|
|
||||||
corsFeature()
|
corsFeature()
|
||||||
contentNegotiationFeature()
|
contentNegotiationFeature()
|
||||||
authenticationModule()
|
authenticationModule()
|
||||||
|
|||||||
@ -1,9 +0,0 @@
|
|||||||
package be.vandewalleh.features
|
|
||||||
|
|
||||||
import io.ktor.application.Application
|
|
||||||
import io.ktor.application.install
|
|
||||||
import io.ktor.locations.Locations
|
|
||||||
|
|
||||||
fun Application.locationFeature() {
|
|
||||||
install(Locations)
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user