mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-10-07 20:52:02 +08:00
Create DeleteQueueConfirmationDialog component
This commit is contained in:
@@ -118,6 +118,13 @@ export async function getQueue(qname: string): Promise<GetQueueResponse> {
|
||||
return resp.data;
|
||||
}
|
||||
|
||||
export async function deleteQueue(qname: string): Promise<void> {
|
||||
await axios({
|
||||
method: "delete",
|
||||
url: `${BASE_URL}/queues/${qname}`,
|
||||
});
|
||||
}
|
||||
|
||||
export async function pauseQueue(qname: string): Promise<void> {
|
||||
await axios({
|
||||
method: "post",
|
||||
|
Reference in New Issue
Block a user