mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-24 00:32:30 +02:00
added stream id mapping to xtream api
This commit is contained in:
@@ -3,7 +3,7 @@ use actix_web::http::header::{CACHE_CONTROL, HeaderValue};
|
||||
use actix_web::{HttpRequest, HttpResponse, web};
|
||||
use crate::api::api_model::{AppState, UserApiRequest};
|
||||
use crate::model::api_proxy::{UserCredentials};
|
||||
use crate::model::config::ConfigTarget;
|
||||
use crate::model::config::{ConfigTarget};
|
||||
|
||||
pub(crate) async fn serve_file(file_path: &Path, req: &HttpRequest) -> HttpResponse {
|
||||
if file_path.exists() {
|
||||
@@ -36,4 +36,4 @@ pub(crate) fn get_user_target<'a>(api_req: &'a UserApiRequest, app_state: &'a we
|
||||
let username = api_req.username.as_str().trim();
|
||||
let password = api_req.password.as_str().trim();
|
||||
get_user_target_by_credentials(username, password, api_req, app_state)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user