refactor: update endpoint in useAppConfig
This commit is contained in:
@@ -5,7 +5,7 @@ export default function useAppConfig(appKey) {
|
|||||||
const query = useQuery({
|
const query = useQuery({
|
||||||
queryKey: ['appConfig', appKey],
|
queryKey: ['appConfig', appKey],
|
||||||
queryFn: async ({ signal }) => {
|
queryFn: async ({ signal }) => {
|
||||||
const { data } = await api.get(`/v1/app-configs/${appKey}`, {
|
const { data } = await api.get(`/v1/apps/${appKey}/config`, {
|
||||||
signal,
|
signal,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user