You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hoping to get opinions from the community on how best to handle this.
// https://api.my-domain.com/v1/rooms
enum SiteRoute: Equatable {
case v1(Version_1)
}
extension SiteRoute {
enum Version_1: Equatable {
case users(UsersRoute)
case rooms(RoomsRoute)
}
}
Using this approach, I guess I would have to also name my routes in a similar fashion? i.e. UsersRoute_v1. Has anyone come up with a better solution for this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hoping to get opinions from the community on how best to handle this.
Using this approach, I guess I would have to also name my routes in a similar fashion? i.e. UsersRoute_v1. Has anyone come up with a better solution for this?
Beta Was this translation helpful? Give feedback.
All reactions