Renamed endpoints.rs to endpoints_v1.rs
APIs will now use /v1/...
This commit is contained in:
parent
560b90be55
commit
8169dfd022
8 changed files with 66 additions and 19 deletions
|
@ -1,6 +1,6 @@
|
|||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
#[derive(Deserialize, Serialize, Clone)]
|
||||
pub struct Version {
|
||||
pub build_timestamp: String,
|
||||
pub git_branch: String,
|
||||
|
@ -29,4 +29,7 @@ impl Version {
|
|||
version_pre: env!("CARGO_PKG_VERSION_PRE").parse().unwrap()
|
||||
}
|
||||
}
|
||||
pub fn to_string(self) -> String {
|
||||
serde_json::to_string(&self).expect("Failed to parse into string")
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue