diff --git a/endstat_conf.example.ron b/endstat_conf.example.ron index 72b08b5..74ae109 100644 --- a/endstat_conf.example.ron +++ b/endstat_conf.example.ron @@ -24,8 +24,9 @@ label: "Even more stuff!", endpoints: [ (label: "Or expect different reponse codes (like 418)", endpoint: "http://error418.net/", code: 418), - (label: "Or bodies!", endpoint: "http://urlecho.appspot.com/echo", body: "None"), + (label: "Or response checking!", endpoint: "http://urlecho.appspot.com/echo", body: "None"), (label: "Or both!", endpoint: "http://urlecho.appspot.com/echo?status=503&Content-Type=text%2Fhtml&body=None", body: "None", code: 503), + (label: "Or expect the endpoint to fail entirely!", endpoint: "http://lol.arpa", should_err: true), ], ), ( @@ -33,7 +34,7 @@ endpoints:[ (label: "The code doesn't match!", endpoint: "http://example.com/", code: 204), (label: "The body doesn't match!", endpoint: "http://example.com/", body: "asdf"), - (label: "Here's an error", endpoint: "https://some-invalid-website.arpa") + (label: "Here's an error:", endpoint: "https://some-invalid-website.arpa") ] ), ] diff --git a/src/main.rs b/src/main.rs index 5d09087..a50535a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -51,7 +51,7 @@ fn main() { let clone_state = Arc::clone(&state); HttpServer::new(move || { - let tera = compile_templates!(concat!(env!("CARGO_MANIFEST_DIR"), "/templates/**/*")); + let tera = compile_templates!("./templates/**/*"); let state = Arc::clone(&state); App::new() diff --git a/templates/index.html b/templates/index.html index 8e7e369..3bb4531 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,7 +3,7 @@ - Endstat + endstat