Ok so I need `resource("/{...}", "static/index.htm...
# ktor
r
Ok so I need
resource("/{...}", "static/index.html")
. My problem was that I was trying to use
resource("*", "static/index.html")
or
resource("/*", "static/index.html")
, but it doesn't work as
/*
matches
/a
but not
/a/b
. Something like
/**
would make much more sense than
/{...}
imho
o
{...}
is a shortcut for
{param...}
(like varargs) when you want to capture values for the matched path parts.
**
could be an alias indeed, but is it more discoverable?
r
Well, when I realized what
*
actually did, I immediately tried
**
. I don't know why it feels natural to me.
But yeah I understand where
{...}
comes from
r
@orangy it would be more discoverable, yes. I remember trying that myself before diving into the docs to recall
/{...}
.
o
Looks good, can you create an issue please?
r
Done, thanks for considering this! https://github.com/ktorio/ktor/issues/338