feat: add server version to FAQ page

This commit is contained in:
zerosoul
2022-05-16 21:54:34 +08:00
parent 7987d10be7
commit d2c06d69b8
2 changed files with 16 additions and 4 deletions
+11 -1
View File
@@ -29,7 +29,6 @@ export const serverApi = createApi({
// accept: "text/plain",
// },
url: `/admin/system/third_party_secret`,
responseHandler: (response) => response.text(),
}),
keepUnusedDataFor: 0,
@@ -44,6 +43,16 @@ export const serverApi = createApi({
getMetrics: builder.query({
query: () => ({ url: `/admin/system/metrics` }),
}),
getServerVersion: builder.query({
query: () => ({
headers: {
// "content-type": "text/plain",
accept: "text/plain",
},
url: `/admin/system/version`,
responseHandler: (response) => response.text(),
}),
}),
getFirebaseConfig: builder.query({
query: () => ({ url: `admin/fcm/config` }),
}),
@@ -161,6 +170,7 @@ export const serverApi = createApi({
});
export const {
useGetServerVersionQuery,
useGetGoogleAuthConfigQuery,
useUpdateGoogleAuthConfigMutation,
useGetSMTPStatusQuery,