diff --git a/src/app/me/page.tsx b/src/app/me/page.tsx index 71cfd7a..7ab967e 100644 --- a/src/app/me/page.tsx +++ b/src/app/me/page.tsx @@ -70,7 +70,7 @@ const Main = () => { const urlParams = new URLSearchParams(window.location.search); const code = urlParams.get('code'); if (code) { - authApi.post(`oauth/discord/${code}`).then((response) => { + authApi.post(`auth/discord/${code}`).then((response) => { if (response.status === 403) { const about_logging = document.getElementById('about_logging'); about_logging.style.color = "#ff2a2a"; @@ -128,7 +128,7 @@ const Login = () => { }) useEffect(() => { - axios.get(process.env.NEXT_PUBLIC_API_URL + `oauth/roles`).then((response) => { + axios.get(process.env.NEXT_PUBLIC_API_URL + `auth/roles`).then((response) => { if (response.status === 200) { setRoles(response.data); } diff --git a/src/app/modules/utils/api.module.tsx b/src/app/modules/utils/api.module.tsx index 99a4698..6d8519e 100644 --- a/src/app/modules/utils/api.module.tsx +++ b/src/app/modules/utils/api.module.tsx @@ -4,7 +4,7 @@ import { jwtDecode } from "jwt-decode"; import { getCookie, deleteCookie, setCookie } from 'cookies-next'; const api = process.env.NEXT_PUBLIC_API_URL; -const login_endpoint = "oauth/discord/"; +const login_endpoint = "auth/discord/"; interface CookieObj { sessionId: string, diff --git a/src/app/tutorials/page.tsx b/src/app/tutorials/page.tsx index a83e853..795902f 100644 --- a/src/app/tutorials/page.tsx +++ b/src/app/tutorials/page.tsx @@ -23,7 +23,7 @@ export default function Home() { const [roles, setRoles] = useState([]); useEffect(() => { - axios.get(process.env.NEXT_PUBLIC_API_URL + `oauth/roles`).then((response) => { + axios.get(process.env.NEXT_PUBLIC_API_URL + `auth/roles`).then((response) => { if (response.status === 200) { setRoles(response.data); }