git_http_backend/actix/
handler.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::config::GitHttpConfig;
use std::path::PathBuf;

#[derive(Clone)]
pub struct ActixGitHttp{
    pub config: GitHttpConfig
}

impl ActixGitHttp {
    pub fn rewrite(&self, path: String) -> PathBuf {
        PathBuf::from(&self.config.root).join(path)
    }
}