JagCesar / Tesla-API

A iOS, macOS, watchOS and tvOS framework written in Swift to communicate with Teslas vehicle API
MIT License
34 stars 6 forks source link

Make adding of path to URL better #10

Closed JagCesar closed 7 years ago

JagCesar commented 7 years ago

The base url is now of the type URL instead of String, which is nicer. And instead of just adding the path value that is available from the request struct, we use the function named "appendingPathComponent" which should help us avoid nasty bugs and errors.