From 09643eca0c376dddb6eb93316793653c8cfccc8d Mon Sep 17 00:00:00 2001 From: Hubert Van De Walle Date: Sun, 12 Apr 2020 01:22:34 +0200 Subject: [PATCH] Remove TestController --- api/src/controllers/Controllers.kt | 1 - api/src/controllers/TestController.kt | 22 ---------------------- 2 files changed, 23 deletions(-) delete mode 100644 api/src/controllers/TestController.kt diff --git a/api/src/controllers/Controllers.kt b/api/src/controllers/Controllers.kt index 874570b..20003b9 100644 --- a/api/src/controllers/Controllers.kt +++ b/api/src/controllers/Controllers.kt @@ -12,6 +12,5 @@ import org.kodein.di.generic.singleton val controllerModule = Kodein.Module(name = "Controller") { bind() from setBinding() - bind().inSet() with singleton { TestController(this.kodein) } bind().inSet() with singleton { UserController(this.kodein) } } \ No newline at end of file diff --git a/api/src/controllers/TestController.kt b/api/src/controllers/TestController.kt deleted file mode 100644 index 6c068ad..0000000 --- a/api/src/controllers/TestController.kt +++ /dev/null @@ -1,22 +0,0 @@ -package be.vandewalleh.controllers - -import io.ktor.application.call -import io.ktor.locations.Location -import io.ktor.locations.get -import io.ktor.response.respond -import io.ktor.routing.Routing -import org.kodein.di.Kodein - -class TestController(kodein: Kodein) : KodeinController(kodein) { - override fun Routing.registerRoutes() { - get{ - data class Response(val msg: String) - call.respond(Response("Hello")) - } - } - - object Routes { - @Location("/hello") - class Hello - } -} \ No newline at end of file