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:
2026-02-09 16:25:55 -05:00
parent bd602d58ab
commit a5df1bcacb
14 changed files with 722 additions and 722 deletions

3
src/lib/api/index.ts Normal file
View File

@@ -0,0 +1,3 @@
// API Client exports
export { api, authApi, companyApi, listingApi, listingsApi, stateApi, categoriesApi } from './client';
export * from './types';