Commit e9fb4382 authored by Mahmoud Aglan's avatar Mahmoud Aglan

i hope this can fix

parent 1e7d1256
...@@ -29,7 +29,7 @@ async function request(method, path, token, body) { ...@@ -29,7 +29,7 @@ async function request(method, path, token, body) {
} }
// ═══════════ Auth ═══════════ // ═══════════ Auth ═══════════
export const login = (t, u, p) => request("POST", "/auth/login", null, { username: u, password: p }); export const login = (username, password) => request("POST", "/auth/login", null, { username, password });
export const register = (username, email, password) => request("POST", "/auth/register", null, { username, email, password }); export const register = (username, email, password) => request("POST", "/auth/register", null, { username, email, password });
export const getMe = (token) => request("GET", "/auth/me", token); export const getMe = (token) => request("GET", "/auth/me", token);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment