mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-18 15:44:36 +00:00
added delete weight api config
This commit is contained in:
1 parent
3ad2d2005b
commit
909602f78e
1 file changed
+19
@@ -0,0 +1,19 @@
|
||||
import MakeRequest from "../MakeRequest";
|
||||
|
||||
export interface DeleteWeightRequest {
|
||||
description_markdown: string,
|
||||
description_rendered_html: string,
|
||||
title: string,
|
||||
visibility: string,
|
||||
weight_category: string,
|
||||
weight_type: string
|
||||
}
|
||||
|
||||
export interface DeleteWeightResponse {
|
||||
success: boolean
|
||||
}
|
||||
|
||||
export const DeleteWeight = MakeRequest<string, DeleteWeightRequest, DeleteWeightResponse,{}>({
|
||||
method: "POST",
|
||||
routingFunction: (weight_token: string) => `/v1/weights/weight/${ weight_token }`,
|
||||
});
|
||||
Reference in new issue
Block a user