Probably a bug, don't know for sure, but when you ...
# ktor
m
Probably a bug, don't know for sure, but when you have request resource like this
Copy code
@Serializable
@Resource("test/{id}.pdf")
class GetPDF(val parent: Timestamp = Timestamp(), val id: String)
The path parameter doesn't get filled and you get a request like
...test/{id}.pdf?id=1
instead of
.../test/1.pdf
To get the correct behaviour the path parameter must be followed by '/' like so:
test/{id}/.pdf
a
I’ve filed an issue.
👍 2
👍🏾 1