feat: Add App Version to UI

This commit is contained in:
blessedcoolant
2023-07-08 21:31:17 +12:00
parent 1cd09a5a53
commit 3333805821
8 changed files with 105 additions and 669 deletions

View File

@ -0,0 +1,15 @@
import { api } from '..';
import { AppVersion } from '../types';
export const appInfoApi = api.injectEndpoints({
endpoints: (build) => ({
getAppVersion: build.query<AppVersion, void>({
query: () => ({
url: `app/version`,
method: 'GET',
}),
}),
}),
});
export const { useGetAppVersionQuery } = appInfoApi;