1
0
Fork 0

feat(backend): Support for generating images

This commit is contained in:
joostdecock 2023-11-03 12:58:58 +01:00
parent 705b6bcecd
commit 41e3cd9cb9
17 changed files with 704 additions and 104 deletions

View file

@ -591,10 +591,10 @@ Backend.prototype.adminPing = async function (token) {
}
/*
* Migrate a v2 account
* backend.img: Generate a social media image
*/
Backend.prototype.migrate = async function (data) {
return responseHandler(await api.post(`/migrate`, data))
Backend.prototype.img = async function (data) {
return responseHandler(await api.post('/img', data, { responseType: 'arraybuffer' }))
}
export function useBackend() {