API & Client - rename data export endpoints
This commit is contained in:
@ -212,7 +212,7 @@
|
||||
async function downloadArchive(filename: string) {
|
||||
generatingLink.value = true
|
||||
await authApi
|
||||
.get(`/auth/profile/export/${filename}`, {
|
||||
.get(`/auth/account/export/${filename}`, {
|
||||
responseType: 'blob',
|
||||
})
|
||||
.then((response) => {
|
||||
|
@ -452,7 +452,7 @@ export const actions: ActionTree<IAuthUserState, IRootState> &
|
||||
): void {
|
||||
context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)
|
||||
authApi
|
||||
.post('auth/profile/export/request')
|
||||
.post('auth/account/export/request')
|
||||
.then((res) => {
|
||||
if (res.data.status === 'success') {
|
||||
context.commit(
|
||||
@ -470,7 +470,7 @@ export const actions: ActionTree<IAuthUserState, IRootState> &
|
||||
): void {
|
||||
context.commit(ROOT_STORE.MUTATIONS.EMPTY_ERROR_MESSAGES)
|
||||
authApi
|
||||
.get('auth/profile/export')
|
||||
.get('auth/account/export')
|
||||
.then((res) => {
|
||||
if (res.data.status === 'success') {
|
||||
context.commit(
|
||||
|
Reference in New Issue
Block a user