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