mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-04 19:28:46 +01:00
Move environments into instance settings
This commit is contained in:
1 parent
20853c196a
commit
cb40d9afea
36 files changed
+397
-132
No files matched your search
@@ -1,13 +1,19 @@
|
||||
import type {
|
||||
InstanceExperimentalSettings,
|
||||
InstanceGeneralSettings,
|
||||
InstanceSettings,
|
||||
IssueGraphLivenessAutoRecoveryPreview,
|
||||
PatchInstanceSettings,
|
||||
PatchInstanceGeneralSettings,
|
||||
PatchInstanceExperimentalSettings,
|
||||
} from "@paperclipai/shared";
|
||||
import { api } from "./client";
|
||||
|
||||
export const instanceSettingsApi = {
|
||||
get: () =>
|
||||
api.get<InstanceSettings>("/instance/settings"),
|
||||
update: (patch: PatchInstanceSettings) =>
|
||||
api.patch<InstanceSettings>("/instance/settings", patch),
|
||||
getGeneral: () =>
|
||||
api.get<InstanceGeneralSettings>("/instance/settings/general"),
|
||||
updateGeneral: (patch: PatchInstanceGeneralSettings) =>
|
||||
|
||||
Reference in new issue
Block a user