API & Client - rename data export endpoints

This commit is contained in:
Sam
2023-03-05 10:30:26 +01:00
parent 4aed07d458
commit 65a8ae0ae7
4 changed files with 22 additions and 22 deletions

View File

@ -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) => {

View File

@ -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(