Skip to main content

endpoint

Function endpoint 

Source
pub fn endpoint(api_uri: impl AsRef<str>) -> String
Expand description

Get endpoint to your backend server

Example:

use impulse_ui_kit::router::endpoint;

fn main() {
  // Let assume that your backend is located at `127.0.0.1:8080` with HTTP schema
  assert_eq!(endpoint("/some/api/route").as_str(), "http://127.0.0.1:8080/some/api/route");
}