about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2022-02-21 22:48:26 +0300
committerVika <vika@fireburn.ru>2022-02-21 22:48:26 +0300
commit56d7a24da22a08a27a6ea810c5fb10daff81e595 (patch)
treebe9cd4af9599b93c37a4e7650abd52ac84d28109
parent441389d1e1a6856894ed5d4f449631cde9af9254 (diff)
Use the media endpoint stubs
-rw-r--r--src/main.rs3
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))));