A variant of [`Self::try_resolve()`] which maps to a 404 (Not Found) response if `self` is a [`NameOrIdentity::Name`] for which no corresponding [`Identity`] is found in the SpacetimeDB DNS.
(&self, ctx: &(impl ControlStateReadAccess + ?Sized))
| 108 | /// response if `self` is a [`NameOrIdentity::Name`] for which no |
| 109 | /// corresponding [`Identity`] is found in the SpacetimeDB DNS. |
| 110 | pub async fn resolve(&self, ctx: &(impl ControlStateReadAccess + ?Sized)) -> axum::response::Result<Identity> { |
| 111 | self.try_resolve(ctx) |
| 112 | .await |
| 113 | .map_err(log_and_500)? |
| 114 | .map_err(|name| (StatusCode::NOT_FOUND, format!("`{name}` not found")).into()) |
| 115 | } |
| 116 | |
| 117 | /// If `self` is a [`NameOrIdentity::Name`], looks up the name in the |
| 118 | /// namespace registry (also known as "top level domain") and returns the |
no test coverage detected