encode / hostedapi

Building out an example Starlette service 💚
https://hostedapi.herokuapp.com/
93 stars 10 forks source link

Importable url_for, instead of having to pass around request #57

Closed tomchristie closed 5 years ago

tomchristie commented 5 years ago

Right now we're passing around request in a bunch of places, so that we can reverse the URLs.

Instead of this, we now have an importable url_for so that we don't need to pass a request reference around everywhere.

There will likely be a review of url_for and url_path_for in starlette itself, so we may be able to swap this out for something more graceful in due course.