Constant rename
This commit is contained in:
parent
acffa576e2
commit
76118756b9
2 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
pub const CURRENT_MAJOR_VERSION: i32 = 4;
|
||||
pub const CURRENT_MINOR_VERSION: i32 = 0;
|
||||
pub const API_MAJOR_VERSION: i32 = 4;
|
||||
pub const API_MINOR_VERSION: i32 = 0;
|
||||
pub const COOKIE_SESSION: &str = "session";
|
||||
pub const COOKIE_USERNAME: &str = "username";
|
||||
pub const COOKIE_ADMIN: &str = "admin";
|
||||
|
|
|
@ -192,8 +192,8 @@ impl From<VFSPathBuf> for PathBuf {
|
|||
#[get("/version")]
|
||||
fn version() -> Json<dto::Version> {
|
||||
let current_version = dto::Version {
|
||||
major: CURRENT_MAJOR_VERSION,
|
||||
minor: CURRENT_MINOR_VERSION,
|
||||
major: API_MAJOR_VERSION,
|
||||
minor: API_MINOR_VERSION,
|
||||
};
|
||||
Json(current_version)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue