I defined a static route like this, html files are...
# ktor
x
I defined a static route like this, html files are all under
web
folder. I'm hoping to access
login.html
by /login, but it's returning 404. I trace into the code,
staticBasePackage
has been set to web folder and it can be access correctly. but when code goes to login, staticBasePackage revert to
null
, so login.html is absolutely 404, only when I set
staticBasePackage
again beyond
defaultResource("login.html")
, it is working. Is this a issue or something? I can't see anywhere did change the value of staticBasePackage during this process.