Add REST service which provides the version

This commit is contained in:
Simon Goller 2024-06-26 13:04:35 +02:00
parent ef897bc80f
commit 9011f223c7
2 changed files with 14 additions and 0 deletions

View file

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