diff options
author | Vika <vika@fireburn.ru> | 2022-02-21 22:48:26 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2022-02-21 22:48:26 +0300 |
commit | 56d7a24da22a08a27a6ea810c5fb10daff81e595 (patch) | |
tree | be9cd4af9599b93c37a4e7650abd52ac84d28109 /src | |
parent | 441389d1e1a6856894ed5d4f449631cde9af9254 (diff) | |
download | kittybox-56d7a24da22a08a27a6ea810c5fb10daff81e595.tar.zst |
Use the media endpoint stubs
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 695fb83..261e8a2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -136,8 +136,7 @@ async fn main() -> Result<(), kittybox::database::StorageError> { let media = warp::path("media") .and(warp::path::end() - .and(kittybox::util::require_host()) - .map(|host| "media endpoint?...") + .and(kittybox::micropub::media::media()) .or(kittybox::util::require_host() .and(warp::path::param()) .map(|host: Authority, path: String| format!("media file {}", path)))); |