feat: add support for files and math for messages (#5)

This commit is contained in:
Divlo
2022-01-07 21:21:38 +01:00
committed by GitHub
parent fdc2a2d1de
commit 5c03a9b944
57 changed files with 3403 additions and 2992 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 350 KiB

View File

@ -0,0 +1,47 @@
import { Handler } from '../../handler'
import {
messageExampleComplete6,
messageExampleComplete7,
messageExampleComplete8,
messageExampleComplete9
} from '../../messages/message'
export const getMessagesUploadsImageHandler: Handler = {
method: 'GET',
url: messageExampleComplete6.value as `/${string}`,
response: {
statusCode: 200,
isFile: true,
body: ['image.png']
}
}
export const getMessagesUploadsAudioHandler: Handler = {
method: 'GET',
url: messageExampleComplete7.value as `/${string}`,
response: {
statusCode: 200,
isFile: true,
body: ['audio.mp3']
}
}
export const getMessagesUploadsVideoHandler: Handler = {
method: 'GET',
url: messageExampleComplete8.value as `/${string}`,
response: {
statusCode: 200,
isFile: true,
body: ['video.mp4']
}
}
export const getMessagesUploadsDownloadHandler: Handler = {
method: 'GET',
url: messageExampleComplete9.value as `/${string}`,
response: {
statusCode: 200,
isFile: true,
body: ['download.zip']
}
}

Binary file not shown.