-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update settings api * chore: auto-fix linting and formatting issues
- Loading branch information
Showing
3 changed files
with
53 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
import { swrFetcher } from "@/api/api" | ||
import { GithubComNezhahqNezhaModelSettingResponseModelConfig } from "@/types" | ||
import { ModelSettingResponse } from "@/types" | ||
import useSWR from "swr" | ||
|
||
export default function useSetting() { | ||
return useSWR<GithubComNezhahqNezhaModelSettingResponseModelConfig>( | ||
"/api/v1/setting", | ||
swrFetcher, | ||
) | ||
return useSWR<ModelSettingResponse>("/api/v1/setting", swrFetcher) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters