https://kotlinlang.org logo
Title
c

crummy

01/16/2021, 9:40 PM
Is it possible to implement an interface to describe my routing in Ktor? (I'd like to share e.g. a UserApi interface between my frontend and backend.)
as far as I can tell this isn't possible. But this feature might solve my problem another way: https://ktor.io/docs/features-locations.html#building-urls
c

christophsturm

01/16/2021, 10:26 PM
it seems locations is jvm only so you cannot construct a url on your js frontend with it
but something similar when you can define your location data class in common would be great