Skip to content

Commit

Permalink
changed oauth/ -> auth/
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Sep 28, 2024
1 parent 41f50b0 commit 018745c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/me/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/modules/utils/api.module.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/app/tutorials/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function Home() {
const [roles, setRoles] = useState<Role[]>([]);

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);
}
Expand Down

0 comments on commit 018745c

Please sign in to comment.