From 56d7a24da22a08a27a6ea810c5fb10daff81e595 Mon Sep 17 00:00:00 2001 From: Vika Date: Mon, 21 Feb 2022 22:48:26 +0300 Subject: Use the media endpoint stubs --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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)))); -- cgit 1.4.1