Endpoints
Create a file in your composable folder endpoints.js.
This file defines a centralized list of API endpoints used in the application. It helps maintain consistency and makes API calls easier to manage across different modules. The endpoints object categorizes API routes based on their functionality.
Example Structure
// composables/endpoints.js
const endpoints = {
// Auth Endpoints
loginUser: "/users/auth",
logoutUser: "/users/logout",
// User Endpoints
getUserProfile: "/users/profile",
};
export { endpoints };