https://kotlinlang.org logo
#ktor
Title
# ktor
g

Gunslingor

08/29/2020, 11:40 PM
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

Jparrish

08/30/2020, 3:55 AM
Status pages might be your best bet. https://ktor.io/servers/features/status-pages.html
👍 1
g

Gunslingor

08/30/2020, 4:43 AM
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