mirror of
https://github.com/Radiquum/AniX.git
synced 2025-05-02 10:59:40 +05:00
add login page route
This commit is contained in:
parent
64886347f2
commit
5c9c3e67fa
3 changed files with 6 additions and 2 deletions
|
@ -14,8 +14,8 @@ export const authorize = async (url, data) => {
|
|||
try {
|
||||
const response = await fetch(url, {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify(data),
|
||||
headers: { "Content-Type": "application/x-www-form-urlencoded" },
|
||||
body: data,
|
||||
});
|
||||
if (response.status !== 200) {
|
||||
throw new Error("Ошибка получения данных");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue