feat(api): implement centralized API client and refactor vendor pages
Introduced a new API client in src/lib/api/ to handle requests securely. Refactored vendor pages to use this client. Updated authentication logic in layout and login pages.
This commit is contained in:
3
src/lib/api/index.ts
Normal file
3
src/lib/api/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// API Client exports
|
||||
export { api, authApi, companyApi, listingApi, listingsApi, stateApi, categoriesApi } from './client';
|
||||
export * from './types';
|
||||
Reference in New Issue
Block a user