Skip to content

REST API

// Unix: myscheme://some/path
// Windows: https://myscheme.localhost/some/path
tauri::Builder::default()
.register_uri_scheme_protocol("myscheme", |app, req| {
// Handle the HTTP request, then construct a response.
// PSEUDO CODE, WILL UPDATE LATER
let response = match req.path() {
"/greet" => greet()
}
tauri::http::ResponseBuilder::new().body(response)
});

References