Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
milosmns committed Oct 12, 2023
1 parent f74ed76 commit c49cf30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commonMain/kotlin/commands/cli/ServeCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ class ServeCommand(
server = embeddedServer(
factory = CIO,
port = serverConfig.portApi,
) { customizeConfiguration() }
) { setUp() }

server.start(wait = true)
}

private fun Application.customizeConfiguration() {
private fun Application.setUp() {
install(ForwardedHeaders)
install(CORS) { allowHost("localhost") }
install(ContentNegotiation) { json() }
Expand Down

0 comments on commit c49cf30

Please sign in to comment.