feat!(backend): move /auth/export to /users/@me/export

This commit is contained in:
Sam 2023-03-16 12:49:27 +01:00
parent 17f6ac4d23
commit f087e9a29f
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
5 changed files with 14 additions and 9 deletions

View file

@ -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",

View file

@ -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 };