Loading routes from Cloudflare KV?
I need to store routes in a dynamic fashion (be it env or KV) since routes will controlled from a third party -- is there a way to load these without adding a "default" catchall route that then has access to env/kv context from where the routes can be loaded? Optimally I can avoid a
route.all(...)
that has the logic to fetch this and then add additional routes.3 Replies
i haven't worked w cloudflare much, but this seems like the base case, right?
seems simple enough to grab the route/function name from KV and invoke
right; was just thinking if there was a way to not load routes inside the "
/
" entrypoint but I guess there isn't.sorry, i'm not sure i understand what you mean
you want an app with no entry point at all?