MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / external_routes

Function external_routes

guest-agent/src/http_routes.rs:20–29  ·  view source on GitHub ↗
(config: &Config)

Source from the content-addressed store, hash-verified

18use rocket::{get, response::content::RawHtml, routes, Route, State};
19
20pub fn external_routes(config: &Config) -> Vec<Route> {
21 let mut routes = routes![index];
22 if config.app_compose.public_logs {
23 routes.extend(routes![get_logs]);
24 }
25 if config.app_compose.public_sysinfo {
26 routes.extend(routes![metrics]);
27 }
28 routes
29}
30
31#[get("/")]
32async fn index(state: &State<AppState>) -> Result<RawHtml<String>, String> {

Callers 1

run_externalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected