added stream id mapping to xtream api

This commit is contained in:
euzu
2024-03-18 17:30:52 +01:00
parent 60b9551371
commit 3527bfd905
4 changed files with 78 additions and 24 deletions
+2 -2
View File
@@ -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)
}
}