In a kmp project where the server is being built i...
# ktor
r
In a kmp project where the server is being built in Ktor and the client consumes the API through ktor client, how can the declared type safe routes be shared between them, the artifacts for
Resources
on the server differs from the client
h
It shouldn’t. Sounds like a bug. Can you share your code?
a
What do you mean by artifacts?
r
I'm trying to use a shared
Resource
declaration in both the server and client. Folder structure and file content are in the gist https://gist.github.com/ayitinya/f93868ae6f5c0b3fa03bebf7907326c7 On the client, it compiles without error, but fails on runtime, I resorted to using the strings in place or the Resources