feat: add health API to retrieve application version and display in sidebar

Signed-off-by: Noste <83548733+Noooste@users.noreply.github.com>
This commit is contained in:
Noste
2026-03-07 11:13:33 +01:00
parent b8b0b6b0fa
commit 94ad142edf
5 changed files with 40 additions and 2 deletions
+8
View File
@@ -158,6 +158,14 @@ export const authApi = {
},
};
// Health API
export const healthApi = {
getVersion: async (): Promise<string> => {
const response = await api.get('/v1/health');
return response.data.data.version as string;
},
};
// Bucket API
export const bucketsApi = {
list: async (): Promise<Bucket[]> => {