From d95ae14555b421eb62f9ffaeb7c869c540961fa4 Mon Sep 17 00:00:00 2001 From: Vika Date: Tue, 10 May 2022 00:42:01 +0300 Subject: media: move to separate subtree This will ease future extraction of the media endpoint to a separate crate. This is highly desirable since it will allow Kittybox's media endpoint to be used separately in instances where a standalone media endpoint is desirable (e.g. custom solutions using my code to polyfill for desired functionality that is undesirable to implement by oneself) --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index ec6c95f..0234abc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -171,7 +171,7 @@ async fn main() { let media = warp::path("media") .and(warp::path::end() - .and(kittybox::micropub::media::media()) + .and(kittybox::media::media()) .or(kittybox::util::require_host() .and(warp::path::param()) .map(|_host: Authority, path: String| format!("media file {}", path)))); -- cgit 1.4.1