allpornstreamd done and sxyprn updated

This commit is contained in:
Simon
2026-05-19 13:48:50 +00:00
committed by ForgeCode
parent bd8382d579
commit ad1ed1b68e
8 changed files with 1035 additions and 33 deletions

View File

@@ -1,5 +1,6 @@
use ntex::web::{self, HttpRequest};
use crate::proxies::allpornstream::AllPornStreamProxy;
use crate::proxies::archivebate::ArchivebateProxy;
use crate::proxies::clapdat::ClapdatProxy;
use crate::proxies::doodstream::DoodstreamProxy;
@@ -135,6 +136,11 @@ pub fn config(cfg: &mut web::ServiceConfig) {
.route(web::post().to(proxy2redirect))
.route(web::get().to(proxy2redirect)),
);
cfg.service(
web::resource("/allpornstream/{endpoint}*")
.route(web::post().to(crate::proxies::allpornstream::serve))
.route(web::get().to(crate::proxies::allpornstream::serve)),
);
}
async fn proxy2redirect(
@@ -170,6 +176,7 @@ fn get_proxy(proxy: &str) -> Option<AnyProxy> {
"spankbang" => Some(AnyProxy::Spankbang(SpankbangProxy::new())),
"lulustream" => Some(AnyProxy::Lulustream(LulustreamProxy::new())),
"thaiporntv" => Some(AnyProxy::ThaipornTv(ThaipornTvProxy::new())),
"allpornstream" => Some(AnyProxy::AllPornStream(AllPornStreamProxy::new())),
_ => None,
}
}