diff options
author | Vika <vika@fireburn.ru> | 2022-05-10 00:42:01 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2022-05-10 00:42:01 +0300 |
commit | d95ae14555b421eb62f9ffaeb7c869c540961fa4 (patch) | |
tree | 59a9ba5911977620c62ebbfec7f6a6c791d0219a /src/main.rs | |
parent | 974613c21479300284922e851447a51afb40057a (diff) | |
download | kittybox-d95ae14555b421eb62f9ffaeb7c869c540961fa4.tar.zst |
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)
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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)))); |