Style rework #35
1 changed files with 8 additions and 4 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue