Public
Like
endpoints
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
- fetch my vals
- loop through vals
- look at each val's file list to find endpoints.tsx
- refine the filtering
- only one filter: find endpoints.* where * could be js, jsx, ts, tsx
- read each matching val's endpoints file
- format output
- fetch it from cloudflare
- implement caching
this will loop through all of my vals, collecting the ones with endpoints.tsx
, and updating something somewhere, I'm not sure what yet.
if this pushes to somewhere else make sure to store the secret location in an env var.
but it would be better to pull from elsewhere when needed, with some intelligent caching.