Returns the path to the asset
>>> resource_path("cow_emoji.png")
'http://pasture-one-actor/assets/cow_emoji.png'
Source code in fediverse_pasture_inputs/resources.py
| def resource_path(asset: str) -> str:
"""Returns the path to the asset
```pycon
>>> resource_path("cow_emoji.png")
'http://pasture-one-actor/assets/cow_emoji.png'
```
"""
used_resources.add(asset)
return urljoin(resource_base_path, asset)
|