https://kotlinlang.org logo
Title
m

Marcus Cvjeticanin

02/25/2023, 12:06 AM
For example, /api/v1/posts but currently it's only /posts
m

Marcus Cvjeticanin

02/25/2023, 12:35 AM
Nice! Thanks. Just one additional question. When creating this application.yaml file (using Netty). Will it be picked up automatically? Currently it does not seem to have any effect. This is my config:
ktor:
  deployment:
    port: 8080
    rootPath: "/api"
  application:
    modules:
      - org.test.Application.module
I tried just for fun to add a program argument in my run configuration
-config=application.yaml
but that didn't work either. Hm
d

Dariusz Kuc

02/25/2023, 12:56 AM
hocon is supported automatically for yaml you need extra dependency https://ktor.io/docs/configuration-file.html#configuration-file-overview
m

Marcus Cvjeticanin

02/25/2023, 1:00 AM
Ah, how could I miss that... Thanks again!