feat(backend): Support for generating images
This commit is contained in:
parent
705b6bcecd
commit
41e3cd9cb9
17 changed files with 704 additions and 104 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue