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
I like where you're going with this, but I'd love to see some more specific names. Sort of how in UIKit UIStackView could do both .horizontal and .vertical axes, so Route can do .POST and .GET. But in SwiftUI, we have separate HStack and VStack. I'd love to see all the Routes become
GET("todos") {
....
}
Or
POST("todos" ...)
And Route is a final class, so declare them as static functions which return Routes for all I care!
func GET(_ path:String, ...)->Route
Will get you 90% of the way there.
And please please please make "Group" more understandable, maybe
SubPath("api") {
....
}
The text was updated successfully, but these errors were encountered:
GET and POST just a wrapper on Route, so it is easy to add, but change Group to SubPath could be a source breaking change, so the version needs to be bump up to 2.0.0.
So I'll add GET, POST, PUT, DELETE, PATCH in version 1.1.0,
and I think maybe there is another name that could be more suitable for this than SubPath?
I'll take into consideration.
I like where you're going with this, but I'd love to see some more specific names. Sort of how in UIKit UIStackView could do both .horizontal and .vertical axes, so Route can do .POST and .GET. But in SwiftUI, we have separate HStack and VStack. I'd love to see all the Routes become
GET("todos") {
....
}
Or
POST("todos" ...)
And Route is a final class, so declare them as static functions which return Routes for all I care!
func GET(_ path:String, ...)->Route
Will get you 90% of the way there.
And please please please make "Group" more understandable, maybe
SubPath("api") {
....
}
The text was updated successfully, but these errors were encountered: