Constant rename

This commit is contained in:
Antoine Gersant 2020-01-16 23:38:46 -08:00
parent acffa576e2
commit 76118756b9
2 changed files with 4 additions and 4 deletions

View file

@ -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";

View file

@ -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)
}