(
root: PathBuf,
mount_prefix: &str,
method: Method,
uri: Uri,
access_token: Option<String>,
)
| 13 | } |
| 14 | |
| 15 | pub async fn serve_static_under( |
| 16 | root: PathBuf, |
| 17 | mount_prefix: &str, |
| 18 | method: Method, |
| 19 | uri: Uri, |
| 20 | access_token: Option<String>, |
| 21 | ) -> Result<Response<Body>, StatusCode> { |
| 22 | serve_static_inner(root, Some(mount_prefix), false, method, uri, access_token).await |
| 23 | } |
| 24 | |
| 25 | async fn serve_static_inner( |
| 26 | root: PathBuf, |
no test coverage detected