From 5523bd7a5e30b09baa6bb3ccd23252d0ebef6000 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 19 Apr 2019 22:07:22 +0200 Subject: Fixed recursive upload function Co-authored-by: LarsVomMars --- src/main/kotlin/App.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main/kotlin/App.kt') diff --git a/src/main/kotlin/App.kt b/src/main/kotlin/App.kt index f081bea..d3f0cd9 100644 --- a/src/main/kotlin/App.kt +++ b/src/main/kotlin/App.kt @@ -17,11 +17,9 @@ const val fileHome = "files" val databaseController = DatabaseController() val userHandler = UserHandler() val fileController = FileController() -val log = Logger.getLogger("App.kt") +private val log = Logger.getLogger("App.kt") fun main() { - log.warning(File(".").absolutePath) - val app = Javalin.create().apply { enableStaticFiles("${File(".").absolutePath}/src/main/resources/", Location.EXTERNAL) port(7000) -- cgit v1.2.3