chore: response handler shortcut

This commit is contained in:
Tristan Yang
2023-01-17 09:31:43 +08:00
parent 28319fe8e3
commit 9a1ca2bc70
2 changed files with 18 additions and 7 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ export const authApi = createApi({
},
url: `user/send_login_magic_link?email=${encodeURIComponent(email)}`,
method: "POST",
responseHandler: (response: Response) => response.text()
responseHandler: "text"
})
}),
sendRegMagicLink: builder.mutation<