pub fn router(state: Arc<ServerState>) -> RouterExpand description
Build the axum router with the libfw routes mounted.
Routes:
GET /file/{*path}— download with Range / ETag / compressionHEAD /file/{*path}— metadata onlyPOST /file/{*path}— streaming upload (headers:x-libfw-file-meta, optionalx-libfw-offset, optionalx-libfw-compress)GET /dir/{*path}— directory listing (JSON)
All routes first pass through [validate_protocol], which enforces the
x-libfw-protocol handshake shared with the WASM client.