Open PirosB3 opened 9 months ago
This seems like a great improvement and I'm happy to merge a PR with this functionality when ready!
Fyi, vasco already supports short cast hashes when replacing the warpcast.com domain w/ vasco.wtf on any warpcast URLs. Maybe something to reuse there.
For example, this should work as expected already:
Overview
I would like to propose an enhancement for Vasco's '/cast/[id]' endpoint to effectively resolve shortened cast hash hexes, as found in Warpcast links. This feature would significantly streamline the process of retrieving metadata from Warpcast links, a common requirement in my personal development workflows (and likely other's too).
As observed in recent discussions within the developer community, particularly highlighted by Daniel from Acilia on Warpcast, there's a growing need for handling shortened cast hashes in development scenarios. While Warpcast's user-friendly URLs are appreciated, they pose a challenge when full cast hashes are required for development purposes.
Proposed Solution
I propose updating Vasco's existing
/cast/[id]
endpoint to include functionality that can interpret and resolve shortened cast hash hexes. I'm happy to do it as long as you agree this is a good direction forward.