Migrating from services to dedicated API files

This commit is contained in:
2025-05-03 21:28:41 +02:00
parent e789025cd1
commit 043eab423f
22 changed files with 265 additions and 228 deletions

View File

@@ -6,7 +6,7 @@ import React, {
useEffect,
} from 'react';
import { notifications } from '@mantine/notifications';
import * as authApi from '../services/authApi';
import * as authApi from '../api/auth';
const AuthContext = createContext(null);

View File

@@ -14,7 +14,7 @@ import {
updateLastWorkspaceName,
deleteWorkspace,
listWorkspaces,
} from '../services/api';
} from '../api/notes';
import { DEFAULT_WORKSPACE_SETTINGS } from '../utils/constants';
const WorkspaceContext = createContext();