Is there a way to do `get("/api/<something: int...
# ktor
m
Is there a way to do
get("/api/<something: int>/<other: string>")
in ktor?
d
@martmists
m
huh what
oh
why aren't you just replying in chat instead of DM
d
this is not a DM, it is a thread replying your question
m
what
d
that’s how slack works to not pollute the main channel
m
That's why you make multiple channels, right? just like discord. A couple channels for help, one for general talk, one for suggestions, etc?
having threads just hides messages that could otherwise be useful
d
well, channels group themes, while threads group topics like in a forum
in the case you want to revive an old message there is an “Also send to #ktor” checkbox to do just it
m
But how is that system better than this?
The linked image (discord) seems much more intuitive to give support for projects, such as your framework
Anyways that seems to work, but then I found out there's the same thing without the additional package where I just use call.parameters
d
Well, I didn’t do slack 🙂 I just use it. There is a channel for talk about that kind of stuff ( #meta ), this channel is for talking about Ktor itself. you don’t have to convince me about using discord: that probably won’t happen since the community lives here and also that doesn’t depend on me. So yeah, maybe discord is better, but that doesn’t matter. Sorry about that, we all have to live with its limitations. So let’s get back to the topic in question: let me know if that feature (typed routing) works for you
m
just
Copy code
kotlin
get("/api/{pack}/versions") {
    val pack = call.parameters["pack"]
    // ...
}
seemed to work fine
d
perfect 👍
m
Wait, does slack not even support hl.js
d
please, refrain from complaining about slack here, it’s pointless, people is here to read about ktor, try #meta instead
👍 1