feat(eda): name and delete capture sources; an armed binding blocks the delete
This commit is contained in:
22 files changed
+1103
-592
No files matched your search
@@ -336,6 +336,10 @@ export const api = {
|
||||
request<T>(`/api/sources/${encodeURIComponent(path)}/approve-unsigned`, {
|
||||
method: "POST",
|
||||
}),
|
||||
sourceName: <T = unknown>(path: string, name: string) =>
|
||||
request<T>(`/api/sources/${encodeURIComponent(path)}/name`, { method: "PUT", body: { name } }),
|
||||
sourceDelete: (path: string) =>
|
||||
request<void>(`/api/sources/${encodeURIComponent(path)}`, { method: "DELETE", parse: false }),
|
||||
sourceSecret: <T = unknown>(path: string) =>
|
||||
request<T>(`/api/sources/${encodeURIComponent(path)}/secret`, {
|
||||
method: "POST",
|
||||
|
||||
Reference in new issue
Block a user