https://kotlinlang.org logo
#ktor
Title
# ktor
r

ribesg

03/22/2023, 1:15 PM
There should be an error somewhere when calling
<http://io.ktor.server.routing.post|io.ktor.server.routing.post>
if the reified type used is marked with
@Resource
. Just had everything fail with 404 errors because I didn't manually import
<http://io.ktor.server.resources.post|io.ktor.server.resources.post>
and my IDE saw nothing wrong with that.
That defined root routes expecting my resource as request body, instead of routes matching the resource path
a

Aleksei Tirman [JB]

03/22/2023, 1:58 PM
Can you please file a feature request?
👍 1
r

ribesg

03/22/2023, 2:08 PM
I can't stop getting bitten by this, the IDE is against me
4 Views