forked from maiora/backend-api
ripristino plugin CallLogging
permette di stampare nei log la risposta HTTP inviata da Ktor
This commit is contained in:
parent
7b8eaa6261
commit
0e061c9eca
@ -33,6 +33,7 @@ dependencies {
|
||||
//implementation("org.postgresql:postgresql:42.7.2")
|
||||
implementation("com.microsoft.sqlserver:mssql-jdbc:11.2.0.jre18")
|
||||
implementation("com.oracle.database.jdbc:ojdbc8:19.8.0.0")
|
||||
implementation("io.ktor:ktor-server-call-logging:$ktor_version")
|
||||
implementation("io.ktor:ktor-server-cors:$ktor_version")
|
||||
implementation("org.jetbrains.exposed:exposed-jdbc:0.55.0")
|
||||
implementation("org.jetbrains.exposed:exposed-dao:$exposed_version")
|
||||
|
@ -7,6 +7,7 @@ import io.ktor.server.application.*
|
||||
import io.ktor.server.config.*
|
||||
import io.ktor.server.engine.*
|
||||
import io.ktor.server.netty.*
|
||||
import io.ktor.server.plugins.callloging.*
|
||||
import io.ktor.server.plugins.cors.routing.*
|
||||
import java.io.FileInputStream
|
||||
import java.util.*
|
||||
@ -30,6 +31,7 @@ fun Application.module(configFile: Properties) {
|
||||
configureRouting()
|
||||
configureSerialization()
|
||||
|
||||
install(CallLogging)
|
||||
install(CORS){
|
||||
anyHost()
|
||||
allowSameOrigin = true
|
||||
|
Loading…
Reference in New Issue
Block a user