Skip to main content

router

Function router 

Source
pub fn router(
    zone: impl Into<String>,
    directory: Arc<dyn HostedAccountHttpDirectory>,
) -> Result<Router>
Expand description

Build the separate credential-free account-artifact router.

The returned router has only three GET routes and no layers. Bind it to a distinct listener from authenticated OAuth/XRPC routes. The caller remains responsible for binding the wildcard certificate and for refusing to mount this router into an authenticated listener.