//! Middleware that injects per-site context into request extensions.
//!
//! Applied as a layer on each per-slug route nest. The `Arc<SiteContext>`
//! is passed via state (not extracted from path), since the slug is hard-coded
//! into the nest URL at startup.
use crateSiteContext;
use crateSiteScopedDb;
use ;
use Next;
use Response;
use Arc;
/// Inject `SiteScopedDb` + `Arc<SiteContext>` into request extensions
/// for the current site. State is the pre-resolved `SiteContext`.
pub async