I have this here: ```@Resource("/user") data objec...
# ktor
l
I have this here:
Copy code
@Resource("/user")
data object Users {
	@Resource("username/{username}")
	data class Username(
		val parent: Users = Users,
		val username: String
	)
}
And this:
Copy code
post<Users.Username> {
    cal.respond("Received $it")
}
But a
POST
request to
/user/username/test
gives me a 404 code. Does anyone know why would this happen?
ok, found the issue, I accidentally imported
<http://routing.post|routing.post>
instead of
<http://resources.post|resources.post>
...
e
Wrong imports happen a lot.
l
@Emre I don't think they should? Kinda bad API design