about summary refs log tree commit diff
diff options
context:
space:
mode:
-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))));