Does anyone know if it’s possible to define two ro...
# ktor
s
Does anyone know if it’s possible to define two routes for one class using ktor’s
Locations
API? Example:
Copy code
@Location("/firstroute") // I'd like to define this class as being for both "/firstroute" and "/secondroute"
data class MyRequest(
    // fields go here
)

@Location("/secondroute") // Instead I have to make a copy of the exact same class just with a different annotation, which makes me sad
data class MyRequest(
    // fields go here
)