Is it possible to share type safe definition of th...
# ktor
d
Is it possible to share type safe definition of the API defined using the Resources plugin between ktor client and server? (io.ktor:ktor-server-resources and io.ktor:ktor-client-resources)
h
This is exactly the use-case and feature of the resources plugin.
👍 1
j
But how can I do it? Should I use
@Resource
annotation twice (from client and server dependecies)?
h
What do you mean? You should put the resources into your shared module.