change path to comply with swagger spec

This commit is contained in:
blek 2023-10-22 15:16:47 +10:00
parent f8172d7e61
commit 2af8e44dd9
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ pub async fn get_all(state: SharedState) -> Result<Box<dyn Reply>, Rejection> {
}
pub fn get_all_f(state: SharedState) -> impl Filter<Extract = impl Reply, Error = Rejection> + Clone {
warp::path!("api" / "get_all")
warp::path!("api" / "files" / "get_all")
.map(move || state.clone())
.and_then(get_all)
}