changed the navbar to work.
All checks were successful
Build Frontend / Build Frontend (push) Successful in 9s

This commit is contained in:
2026-01-11 02:51:50 +00:00
parent 4b00a2b4fe
commit e549e77811

View File

@@ -1,6 +1,6 @@
import { defineStore } from "pinia";
import { ref, computed } from "vue";
import axios from "axios";
import axios from "@/utils/axios";
import { useToast } from "vue-toastification";
const toast = useToast();
@@ -47,7 +47,7 @@ export const useAuthStore = defineStore("auth", () => {
console.log("🔵 fetchUser called - fetching user from /api/auth/me");
isLoading.value = true;
try {
const response = await axios.get("/api/auth/me", {
const response = await axios.get("/auth/me", {
withCredentials: true,
});
@@ -86,7 +86,7 @@ export const useAuthStore = defineStore("auth", () => {
isLoading.value = true;
try {
await axios.post(
"/api/auth/logout",
"/auth/logout",
{},
{
withCredentials: true,
@@ -111,7 +111,7 @@ export const useAuthStore = defineStore("auth", () => {
const refreshToken = async () => {
try {
await axios.post(
"/api/auth/refresh",
"/auth/refresh",
{},
{
withCredentials: true,
@@ -129,7 +129,7 @@ export const useAuthStore = defineStore("auth", () => {
isLoading.value = true;
try {
const response = await axios.patch(
"/api/user/trade-url",
"/user/trade-url",
{ tradeUrl },
{ withCredentials: true }
);
@@ -155,7 +155,7 @@ export const useAuthStore = defineStore("auth", () => {
isLoading.value = true;
try {
const response = await axios.patch(
"/api/user/email",
"/user/email",
{ email },
{ withCredentials: true }
);
@@ -178,7 +178,7 @@ export const useAuthStore = defineStore("auth", () => {
const verifyEmail = async (token) => {
isLoading.value = true;
try {
const response = await axios.get(`/api/user/verify-email/${token}`, {
const response = await axios.get(`/user/verify-email/${token}`, {
withCredentials: true,
});
@@ -199,7 +199,7 @@ export const useAuthStore = defineStore("auth", () => {
const getUserStats = async () => {
try {
const response = await axios.get("/api/user/stats", {
const response = await axios.get("/user/stats", {
withCredentials: true,
});
@@ -215,7 +215,7 @@ export const useAuthStore = defineStore("auth", () => {
const getBalance = async () => {
try {
const response = await axios.get("/api/user/balance", {
const response = await axios.get("/user/balance", {
withCredentials: true,
});