How do I redirect ALL non-authenticated routes to ...
# ktor
g
How do I redirect ALL non-authenticated routes to a login page? i.e. how does one get("EVERYTHING")... get(" * ") only gets ANYTHING/ but not ANYTHING/ANYTHING.
more specifically... if someone enters an undefined route, forward them to login.
j
Status pages might be your best bet. https://ktor.io/servers/features/status-pages.html
👍 1
g
hmm... ok... it's just wierd, KotlinJS is in use and I'm trying to move routing to the front end, but seems like the backend still requires all the same routes even though they all end up pointing to the same function, Frontend().... the only HTML in the backend now that loads the libs, css and project.js