mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-11-04 08:50:20 +00:00
update settings api (#121)
* update settings api * chore: auto-fix linting and formatting issues
This commit is contained in:
1 parent
51e34e30c3
commit
a56238bed7
3 files changed
+53
-74
No files matched your search
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user