mirror of
https://github.com/grocy/grocy.git
synced 2025-10-14 17:24:07 +00:00
Refresh also habit/battery statistics on changes on overview pages (references #26)
This commit is contained in:
@@ -44,4 +44,9 @@ class BatteriesApiController extends BaseApiController
|
||||
return $this->VoidApiActionResponse($response, false, 400, $ex->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public function Current(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||
{
|
||||
return $this->ApiResponse($this->BatteriesService->GetCurrent());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user