Skip to content

Commit

Permalink
Ignore path in cached
Browse files Browse the repository at this point in the history
  • Loading branch information
cofob committed May 14, 2024
1 parent 7c2934d commit b81e236
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/routes/redirect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ pub struct CachedRedirectTemplate {
pub urls: Vec<Url>,
}

#[get("/@cached/{service_name}")]
#[get("/@cached/{service_name}/{path:.*}")]
async fn cached_redirect(
path: web::Path<String>,
path: web::Path<(String, String)>,
config: web::Data<AppConfig>,
crawler: web::Data<Arc<Crawler>>,
) -> actix_web::Result<impl Responder> {
let service_name = path.into_inner();
let (service_name, _) = path.into_inner();

let urls = crawler
.get_redirect_urls_for_service(&service_name)
Expand Down

0 comments on commit b81e236

Please sign in to comment.