mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 21:06:42 +07:00
added apiAuthDeleteMessage
This commit is contained in:
parent
5e85ae2aee
commit
9bdeb5aa0a
2 changed files with 15 additions and 2 deletions
|
@ -51,6 +51,20 @@ export const apiAuthSendMessage = ({
|
|||
.then(resultMiddleware)
|
||||
.catch(errorMiddleware);
|
||||
|
||||
export const apiAuthDeleteMessage = ({
|
||||
access,
|
||||
username,
|
||||
id,
|
||||
}: {
|
||||
access: string;
|
||||
username: string;
|
||||
id: number;
|
||||
}): Promise<IResultWithStatus<{ message: IMessage }>> =>
|
||||
api
|
||||
.delete(API.USER.MESSAGE_DELETE(username, id), configWithToken(access))
|
||||
.then(resultMiddleware)
|
||||
.catch(errorMiddleware);
|
||||
|
||||
export const apiAuthGetUpdates = ({
|
||||
access,
|
||||
exclude_dialogs,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue