[][src]Function kpal::web::routes

pub fn routes(
    request: &Request,
    libs: &[TSLibrary],
    txs: Arc<RwLock<Transmitters>>
) -> Response

Directs a HTTP request to the appropriate handler and returns a HTTP response.

Arguments

  • request - The object containing the information concerning the client's request
  • libs The set of libraries that is currently open by the daemon
  • transmitters The set of transmitters for sending messages into each peripheral thread