How can I achieve something like this with ktor ro...
# ktor
t
How can I achieve something like this with ktor routing?
Copy code
fun Routing.v1() {
    route("/api/v1") {
        posts()
    }
}
I am getting
fun Routing.posts() can't be called in this context by implicit receiver
m
I think your receiver just needs to be of type
Route
, not
Routing
.
👍🏼 2
t
Oh I see thanks sir