You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now we are manually routing the endpoints to functions with string matching. This works but could get messy as things grow.
We should look into a routing library that maintains the same clean, simple structure we're using now. I think itty-router would be a good fit but def needs some testing and high-level thought. Open to feedback.
The text was updated successfully, but these errors were encountered:
For now I've split the database file into handlers, where the durable object passes the request to the handler and it iterates over its endpoint operations in a switch statement. It's still a simple implementation but helps break things up to make them easier to read.
Right now we are manually routing the endpoints to functions with string matching. This works but could get messy as things grow.
We should look into a routing library that maintains the same clean, simple structure we're using now. I think itty-router would be a good fit but def needs some testing and high-level thought. Open to feedback.
The text was updated successfully, but these errors were encountered: