feat!(backend): move /auth/export to /users/@me/export
This commit is contained in:
parent
17f6ac4d23
commit
f087e9a29f
5 changed files with 14 additions and 9 deletions
|
@ -23,7 +23,7 @@
|
|||
|
||||
const requestExport = async () => {
|
||||
try {
|
||||
await apiFetchClient<any>("/auth/export/start");
|
||||
await apiFetchClient<any>("/users/@me/export/start");
|
||||
|
||||
addToast({
|
||||
header: "Export in progress",
|
||||
|
|
|
@ -4,7 +4,7 @@ import { error } from "@sveltejs/kit";
|
|||
|
||||
export const load = async () => {
|
||||
try {
|
||||
const data = await apiFetchClient<ExportResponse>("/auth/export");
|
||||
const data = await apiFetchClient<ExportResponse>("/users/@me/export");
|
||||
return { exportData: data };
|
||||
} catch (e) {
|
||||
if ((e as APIError).code === ErrorCode.NotFound) return { exportData: null };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue