Add REST service which provides the version
This commit is contained in:
parent
ef897bc80f
commit
9011f223c7
2 changed files with 14 additions and 0 deletions
|
|
@ -77,6 +77,10 @@ impl rest::RestStateDef for RestStateImpl {
|
|||
type WorkingHoursService = WorkingHoursService;
|
||||
type ExtraHoursService = ExtraHoursService;
|
||||
|
||||
fn backend_version(&self) -> Arc<str> {
|
||||
Arc::from(env!("CARGO_PKG_VERSION"))
|
||||
}
|
||||
|
||||
fn user_service(&self) -> Arc<Self::UserService> {
|
||||
self.user_service.clone()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue