Nectarengine 0.0.6 - Tale of no slash

in Synergy Builders2 days ago (edited)

New version of NectarEngine released today because I can't remember to use a slash. Not all updates have to be amazing breaking changes, sometimes it's about quality of life. Let me walk you through how this happened.


You know the drill—

api = Api(url="https://enginerpc.com")

Then you call something like:

api.find("contracts", "tokens", {"symbol": "SWAP.HIVE"})

And boom:
https://enginerpc.comcontracts
Not a valid endpoint. The request fails because the base URL is missing that crucial /.

Now you're going back and fixing it:

api = Api(url="https://enginerpc.com/")

But seriously—who naturally adds trailing slashes to URLs? It's just not a default habit.

Rather than manually prefixing every route with /, it was cleaner to fix the base once. One small tweak, big quality of life improvement.

It's Diff!

Curious? View the GitHub Commit: 5141a61


As usual,
Michael Garcia a.k.a. TheCrazyGM

Sort:  

Muh quality of life! Much improved, such quality!