Style rework #35

Merged
Anri merged 70 commits from rework into main 2023-10-15 20:58:23 +02:00
Showing only changes of commit 991495893a - Show all commits

View file

@ -29,10 +29,14 @@ async fn main() -> Result<()> {
HttpServer::new(move || { HttpServer::new(move || {
App::new() App::new()
.app_data(web::Data::new(config.to_owned())) .app_data(web::Data::new(config.to_owned()))
.wrap(DefaultHeaders::new().add(( .wrap(
DefaultHeaders::new()
.add((
"Onion-Location", "Onion-Location",
config.fc.onion.as_deref().unwrap_or_default(), config.fc.onion.as_deref().unwrap_or_default(),
))) ))
.add(("Permissions-Policy", "interest-cohort=()")),
)
.service(web::scope("/api").service(web::scope("v1").service(api_v1::love))) .service(web::scope("/api").service(web::scope("v1").service(api_v1::love)))
.service(index::page) .service(index::page)
.service(agreements::security) .service(agreements::security)