Updated UI with accounts and fixed routing
This commit is contained in:
@@ -11,7 +11,7 @@ pub struct SystemInfo {
|
||||
#[get("/info")]
|
||||
async fn info() -> HttpResponse {
|
||||
let mut healthy = true;
|
||||
let version = match env::var("API_VERSION") {
|
||||
let version = match env::var("CARGO_PKG_VERSION") {
|
||||
Ok(v) => v,
|
||||
Err(_) => {
|
||||
healthy = false;
|
||||
@@ -19,8 +19,6 @@ async fn info() -> HttpResponse {
|
||||
}
|
||||
};
|
||||
|
||||
dbg!(&version);
|
||||
|
||||
let info = SystemInfo { version, healthy };
|
||||
|
||||
HttpResponse::Ok().json(info)
|
||||
|
||||
Reference in New Issue
Block a user