Update CBS Mobile App codebase

This commit is contained in:
Abin Toppo
2026-09-21 13:21:25 +05:30
parent 58af541536
commit 2dcb10775c
339 changed files with 26750 additions and 16767 deletions
+6
View File
@@ -3,6 +3,12 @@ import axios from 'axios';
import { env } from '../../config/env';
import { attachInterceptors } from './interceptors';
/**
* Single client for the CBS backend. The response interceptor unwraps the
* `{ success, message, data }` envelope, so callers read `response.data` as the
* endpoint payload and a `success: false` body arrives as a thrown
* `CbsApiError` carrying the code to switch on.
*/
export const apiClient = axios.create({
baseURL: env.apiBaseUrl,
timeout: 15000,