refactoring

This commit is contained in:
Jonas_Jones 2023-12-15 03:30:58 +01:00
parent 83ba68a8b7
commit b675ed4094
2 changed files with 1 additions and 3 deletions

View file

@ -1,5 +1,3 @@
use warp::Filter;
mod mods;
use mods::get_mods_paths;

View file

@ -1,4 +1,4 @@
use warp::{Filter, filters::addr::remote};
use warp::Filter;
pub fn get_mods_paths() -> impl warp::Filter<Extract = impl warp::Reply, Error = warp::Rejection> + Clone {
// any path that starts with /v1/updates/minecraft/mods/{modname}/{loadername}/{version} calls handle_path