NeoScan_Physician/app/modules/Auth/services/authAPI.ts
2025-07-21 18:47:22 +05:30

29 lines
859 B
TypeScript

/*
* File: authAPI.ts
* Description: API service for authentication using apisauce
* Design & Developed by Tech4Biz Solutions
* Copyright (c) Spurrin Innovations. All rights reserved.
*/
import { create } from 'apisauce';
import { BASE_URL } from '../../../constants/URLS';
import { buildHeaders } from '../../../../shared/src/utils/helpers/Api';
const api = create({
baseURL: BASE_URL, // TODO: Replace with actual endpoint
timeout: 3000,
});
/**
* login - authenticates user with email and password
*/
export const authAPI = {
login: (email: string, password: string,platform:string) => api.post('/api/auth/auth/login', { email, password,platform },buildHeaders()),
// Add more endpoints as needed
};
/*
* End of File: authAPI.ts
* Design & Developed by Tech4Biz Solutions
* Copyright (c) Spurrin Innovations. All rights reserved.
*/